GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 注册
  • Plus 会员

This view

  • Original page
  • New address

GeezerVison is showing leetcode.cn — LCR 173. 点名 - 力扣(LeetCode)

题目描述
题目描述
题解
题解
提交记录
提交记录
LCR 173. 点名
简单

某班级 n 位同学的学号为 0 ~ n-1。点名结果记录于升序数组 records。假定仅有一位同学缺席,请返回他的学号。

 

示例 1:

输入:records = [0,1,2,3,5]
输出:4

示例 2:

输入:records = [0, 1, 2, 3, 4, 5, 6, 8]
输出:7

 

提示:

1 <= records.length <= 10000

 
代码
代码
测试用例
测试用例
测试结果
测试结果
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.