We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88788f commit 22764e6Copy full SHA for 22764e6
algorithms/448_Find_All_Numbers_Disappeared_in_an_Array.py
@@ -0,0 +1,3 @@
1
+class Solution:
2
+ def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
3
+ return set(range(1,len(nums)+1)) - set(nums)
0 commit comments