Skip to content

Commit 83fcb5b

Browse files
author
jinbeom
committed
Fix Line Breaking
1 parent 534fb76 commit 83fcb5b

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

contains-duplicate/kayden.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
class Solution:
44
def containsDuplicate(self, nums: List[int]) -> bool:
55
unique_nums = set(nums)
6-
return len(unique_nums) != len(nums)
6+
return len(unique_nums) != len(nums)
7+

kth-smallest-element-in-a-bst/kayden.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ def dfs(node):
2929

3030
dfs(root)
3131

32-
return self.result
32+
return self.result

number-of-1-bits/kayden.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# 공간복잡도: O(log N)
33
class Solution:
44
def hammingWeight(self, n: int) -> int:
5-
return bin(n).count("1")
5+
return bin(n).count("1")

palindromic-substrings/kayden.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ def countSubstrings(self, s: str) -> int:
1919
isPalindrome[i][j] = True
2020
count += 1
2121

22-
return count
22+
return count

top-k-frequent-elements/kayden.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
class Solution:
66
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
7-
return [num for num, count in Counter(nums).most_common(k)]
7+
return [num for num, count in Counter(nums).most_common(k)]

0 commit comments

Comments
 (0)