Skip to content

Commit c477a8e

Browse files
committed
recommit for posix:
1 parent 7816a76 commit c477a8e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

contains-duplicate/mandel-17.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ def containsDuplicate(self, nums: List[int]) -> bool:
1010
else:
1111
if i == len(nums[:-2]):
1212
return False
13-
continue
14-
13+
continue

top-k-frequent-elements/mandel-17.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ def topKFrequent(self, nums: List[int], k: int) -> List[int]:
1010
nums_dict[n] += 1
1111

1212
frequent_rank = sorted(nums_dict.items(), key=lambda item:item[1], reverse=True)
13-
return [frequent_rank[j][0] for j in range(k)]
14-
15-
13+
return [frequent_rank[j][0] for j in range(k)]

two-sum/mandel-17.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ def twoSum(self, nums: List[int], target: int) -> List[int]:
66
second_value = target - v
77

88
if second_value in nums[i+1:]:
9-
return [i, nums[i+1:].index(second_value) + i+1]
10-
9+
return [i, nums[i+1:].index(second_value) + i+1]

0 commit comments

Comments
 (0)