Načítání úlohy…
You have a complete list full and another list part made by removing exactly one element from it and shuffling the rest. Write a function find_deleted that finds which number disappeared. The solution should run in O(N). The order of elements in the second list does not matter.
[1, 2, 3, 4, 5], [1, 2, 4, 5]3[10, 20, 30], [10, 30]20[5], []5def find_deleted(full: list[int], part: list[int]) -> int:
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit se[1,2,3,4,5], [1,2,4,5]3[10,20,30], [10,30]20[5], []5[1,1,2], [1,2]1[7,8,9,10], [10,8,7]9[2,3,4,5,6], [1,2]17