Re: [闲聊] 每日LeetCode

楼主: JIWP (JIWP)   2024-02-20 18:07:15
※ 引述《JerryChungYC (JerryChung)》之铭言:
: https://leetcode.com/problems/missing-number/
: 268. Missing Number
: 给一个包含[0, n]范围内不同数字的阵列nums,传回范围内唯一缺少的数字
: Example 1:
: Input: nums = [3,0,1]
: Output: 2
: Example 2:
: Input: nums = [0,1]
: Output: 2
: Example 3:
: Input: nums = [9,6,4,2,3,5,7,0,1]
: Output: 8
: Python3 code:
:
作者: JerryChungYC (JerryChung)   2024-02-20 18:12:00
大师
作者: Rushia (みけねこ的鼻屎)   2024-02-20 18:35:00
解100天为啥不会写

Links booklink

Contact Us: admin [ a t ] ucptt.com