当前位置:网站首页>Leetcode 面试题 17.04. 消失的数字
Leetcode 面试题 17.04. 消失的数字
2022-07-02 16:44:00 【我不是萧海哇~~~~】

数组nums包含从0到n的所有整数,但其中缺了一个。请编写代码找出那个缺失的整数。你有办法在O(n)时间内完成吗?
注意:本题相对书上原题稍作改动
示例 1:
输入:[3,0,1]
输出:2
示例 2:
输入:[9,6,4,2边栏推荐
- A good programmer is worth five ordinary programmers!
- Picking up the camera is the best artistic healing
- 毕业总结
- Wechat applet video sharing platform system graduation design completion (5) assignment
- 拿起相机,便是最好的艺术疗愈
- Freemaker+poi realizes dynamic generation and parsing of Excel files
- 王者荣耀商城异地多活架构设计
- C# 检测图片是否被旋转并修改到正真的旋转
- 微信小程序视频分享平台系统毕业设计毕设(6)开题答辩PPT
- Qt Official examples: Qt Quick Controls - Gallery
猜你喜欢

求求你们,别再刷 Star 了!这跟“爱国”没关系!

Chrome 正式支持 MathML,默认在 Chromium Dev 105 中启用

Remember to use ternary expressions when switching transformations

【西北工业大学】考研初试复试资料分享

From a professional background, I can't get into a small company for interview
![[golang | grpc] use grpc to realize simple remote call](/img/93/ae6eba2ba65d6e23bd00f45d04a2ed.png)
[golang | grpc] use grpc to realize simple remote call

详解Kubernetes网络模型

Develop a controller that prohibits deleting namespaces

MySQL advanced - transaction and index

Editor Editor Extension add button and logo in scene view
随机推荐
vi/vim 删除:一行, 一个字符, 单词, 每行第一个字符 命令
Editor Editor Extension add button and logo in scene view
微信小程序视频分享平台系统毕业设计毕设(7)中期检查报告
毕业总结
matplotlib的安装教程以及简单调用
Yingguang MCU development case
Please, stop painting star! This has nothing to do with patriotism!
再放宽!这些应届生,可直接落户上海
【愚公系列】2022年07月 Go教学课程 001-Go语言前提简介
Qt官方示例:Qt Quick Controls - Gallery
QQmlApplicationEngine
实施阴影介绍
719. 找出第 K 小的数对距离
Graduation summary
MySQL --- 數據庫的基本操作
Nvidia 显卡 Failed to initialize NVML Driver/library version mismatch 错误解决方案
Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found
微信小程序视频分享平台系统毕业设计毕设(4)开题报告
Unity学习shader笔记[八十一]简单的颜色调整后处理(亮度,饱和度,对比度)
Aptos tutorial - participate in the official incentive testing network (ait2 incentive testing network)