leetcode刷題筆記30

面試題53 - II. 0~n-1中缺失的數字web 一個長度爲n-1的遞增排序數組中的全部數字都是惟一的,而且每一個數字都在範圍0~n-1以內。在範圍0~n-1內的n個數字中有且只有一個數字不在該數組中,請找出這個數字。面試 class Solution: def missingNumber(self, nums: List[int]) -> int: i,j = 0,len(
相關文章
相關標籤/搜索