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 906e832 commit 99b69acCopy full SHA for 99b69ac
contains-duplicate/codyman0.py
@@ -6,10 +6,10 @@
6
7
class Solution:
8
def containsDuplicate(self, nums: List[int]) -> bool:
9
- sortedArrary = sorted(nums)
10
- for i in range(len(sortedArrary)):
11
- if i == len(sortedArrary) - 1:
+ sortedArray = sorted(nums)
+ for i in range(len(sortedArray)):
+ if i == len(sortedArray) - 1:
12
return False
13
- if sortedArrary[i] == sortedArrary[i + 1] :
+ if sortedArray[i] == sortedArray[i + 1] :
14
return True
15
0 commit comments