当前位置:网站首页>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边栏推荐
- MySQL --- 数据库的基本操作
- Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名
- php获取两个时间戳之间相隔多少天多少小时多少分多少秒
- Qt官方示例:Qt Quick Controls - Gallery
- 977. Square of ordered array
- Wechat applet video sharing platform system graduation design completion (8) graduation design thesis template
- Design of the multi live architecture in different places of the king glory mall
- Web聊天工具
- A4988与42步进电机
- 能解决 80% 故障的排查思路
猜你喜欢
![[golang | grpc] generate certificates using OpenSSL](/img/a6/0c9c80cc24c5f8585051e00e73072f.png)
[golang | grpc] generate certificates using OpenSSL

Editor编辑器扩展在Scene View添加按钮和logo

【愚公系列】2022年07月 Go教学课程 001-Go语言前提简介

MySQL advanced - transaction and index

Embedded ~ introduction

The price is only 40 yuan. Pico development board of raspberry pie is added with WiFi module, and it is out of stock as soon as it comes into the market

In Linux, MySQL sets the job task to start automatically

A good programmer is worth five ordinary programmers!

MySQL installation and configuration

Picking up the camera is the best artistic healing
随机推荐
Bluetooth technology | new working mode of wearable devices of the Internet of things, and Bluetooth ble helps the new working mode
Enter a valid user name and password in the Microsoft LDAP configuration page, and enter a valid user name in the Microsoft LDAP configuration page
Simple understanding of cardinality sorting
How can you omit a large number of switch statements
Picking up the camera is the best artistic healing
人人工势场法
Wechat applet video sharing platform system graduation design completion (6) opening defense ppt
iframe嵌套详解
微信小程序视频分享平台系统毕业设计毕设(4)开题报告
2020 Internet industry terminology
No such file or directory: ‘/tmp/tmpxxx/tmpxxx. py‘
巴比特 | 元宇宙每日必读:一千块就能买一个虚拟主播?这是小企业的直播福音还是在“割韭菜”?...
微信小程序视频分享平台系统毕业设计毕设(1)开发概要
Develop a controller that prohibits deleting namespaces
MySQL --- 数据库的基本操作
Babbitt | metauniverse daily must read: can you buy a virtual anchor for 1000 yuan? Is this the live gospel of small businesses or "cutting leeks"
Is Guojin securities a state-owned enterprise? Is it safe to open an account in Guojin securities?
Three methods of MySQL backup
Customize a loading instruction
vimium映射鍵