当前位置:网站首页>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
边栏推荐
- Picking up the camera is the best artistic healing
- 能解决80%故障的排查思路
- 微信小程序视频分享平台系统毕业设计毕设(2)小程序功能
- 毕业总结
- 微信小程序视频分享平台系统毕业设计毕设(7)中期检查报告
- 微信小程序视频分享平台系统毕业设计毕设(6)开题答辩PPT
- Unity学习shader笔记[八十一]简单的颜色调整后处理(亮度,饱和度,对比度)
- Intelligent hydropower meter energy consumption monitoring cloud platform
- 2020 Internet industry terminology
- Deep understanding of ThreadLocal
猜你喜欢
MySQL advanced - transaction and index
Wechat nucleic acid detection appointment applet system graduation design completion (5) task statement
微信小程序视频分享平台系统毕业设计毕设(2)小程序功能
[golang | grpc] generate certificates using OpenSSL
微信小程序视频分享平台系统毕业设计毕设(3)后台功能
Embedded ~ introduction
微信核酸检测预约小程序系统毕业设计毕设(4)开题报告
Editor Editor Extension add button and logo in scene view
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"
ESP32-C3入门教程 问题篇⑩——error: implicit declaration of function ‘esp_blufi_close‘;
随机推荐
1288_ Implementation analysis of vtask resume() interface and interrupt Security version interface in FreeRTOS
Unity学习shader笔记[八十一]简单的颜色调整后处理(亮度,饱和度,对比度)
微信小程序视频分享平台系统毕业设计毕设(3)后台功能
Wechat applet video sharing platform system graduation design completion (4) opening report
微信核酸检测预约小程序系统毕业设计毕设(3)后台功能
MySQL --- 数据库的基本概念
Typescript
一个优秀程序员可抵五个普通程序员!
Redisson 高性能 Redis 分布式锁源码分析
Deep understanding of ThreadLocal
1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析
Explain kubernetes network model in detail
Outsourcing for five years, abandoned
No such file or directory: ‘/tmp/tmpxxx/tmpxxx. py‘
初夏,开源魔改一个带击杀音效的电蚊拍!
Design of the multi live architecture in different places of the king glory mall
Modbus protocol communication exception
Web chat tool
微信小程序视频分享平台系统毕业设计毕设(7)中期检查报告
Aptos教程-参与官方激励测试网(AIT2 激励测试网)