10 lines
212 B
Python
10 lines
212 B
Python
class Solution:
|
|
def repeatedNTimes(self, nums: List[int]) -> int:
|
|
temp = []
|
|
|
|
for i in nums:
|
|
if i in temp:
|
|
return i
|
|
else:
|
|
temp.append(i)
|