This commit is contained in:
Vombit
2026-05-26 15:38:10 +05:00
parent 352ed5d27c
commit df1dbfd0ae
5 changed files with 116 additions and 29 deletions

9
solutions/lc961.py Normal file
View File

@@ -0,0 +1,9 @@
class Solution:
def repeatedNTimes(self, nums: List[int]) -> int:
temp = []
for i in nums:
if i in temp:
return i
else:
temp.append(i)