Ładowanie zadania…
Imagine one number was accidentally lost from the full sequence 1 to n. You are given a shuffled list nums of length n - 1 containing the remaining numbers. Return the missing number.
[1, 2, 4, 5], 53[2, 3], 31[1, 2], 33def find_deleted(nums: list[int], n: int) -> int:
Zaloguj się, aby zobaczyć historię rozwiązań
Zaloguj sięZaloguj się, aby korzystać z Mentora AI
Zaloguj się[1,2,4,5], 53[2,3], 31[1,2], 33[], 11[3,7,1,2,8,4,5,6,9], 1010[1,2,4,5], 1-11