4
This commit is contained in:
9
solutions/lc961.py
Normal file
9
solutions/lc961.py
Normal 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)
|
||||
Reference in New Issue
Block a user