当前位置:网站首页>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
边栏推荐
- [golang | grpc] generate certificates using OpenSSL
- Picking up the camera is the best artistic healing
- Ora-19838 -- restore control files to the standby database
- Embedded development board ~ description
- Editor编辑器扩展在Scene View添加按钮和logo
- [golang | grpc] use grpc to realize simple remote call
- Easyai notes - machine learning
- 2020互联网行业术语
- 面试,关于线程池的那些事
- Chrome 正式支持 MathML,默认在 Chromium Dev 105 中启用
猜你喜欢
Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名
Chrome 正式支持 MathML,默认在 Chromium Dev 105 中启用
使用Zadig从0到1搭建持续交付平台
Unity学习shader笔记[八十二]增强单通道颜色渲染的黑白处理
RDK simulation experiment
Qt官方示例:Qt Quick Controls - Gallery
微信核酸检测预约小程序系统毕业设计毕设(3)后台功能
From a professional background, I can't get into a small company for interview
Wechat applet video sharing platform system graduation design (3) background function
Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found
随机推荐
Embedded development board ~ description
matplotlib的安装教程以及简单调用
Redisson 高性能 Redis 分布式锁源码分析
微信小程序视频分享平台系统毕业设计毕设(2)小程序功能
再放宽!这些应届生,可直接落户上海
微信小程序视频分享平台系统毕业设计毕设(4)开题报告
Typescript
【Golang | gRPC】使用openssl生成证书
[golang | grpc] generate certificates using OpenSSL
Wechat applet video sharing platform system graduation design completion (7) Interim inspection report
paddlepaddle 28 搭建基于卷积的自动编码机
【Oracle 期末复习】表空间、表、约束、索引、视图的增删改
如何开启IDEA的Run Dashboard功能
Customize a loading instruction
Does pytorch support 32 bits?
怎么可以省去大量的switch语句,省去switch语句
PHP gets the number of days, hours, minutes and seconds between the two timestamps
详解Kubernetes网络模型
【西北工业大学】考研初试复试资料分享
2020 Internet industry terminology