Skip to content

Commit aca532a

Browse files
committed
lint error
1 parent 44d54ea commit aca532a

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

climbing-stairs/devyulbae.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ def climbStairs(self, n: int) -> int:
2121
two_before = one_before # f 밀기
2222
one_before = current # f 밀기
2323

24-
return current
24+
return current
25+

product-of-array-except-self/devyulbae.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ def productExceptSelf(self, nums: List[int]) -> List[int]:
3333

3434
answer = []
3535
for i in range(len(nums)):
36-
answer.append((left_product[i-1] if i>0 else 1)* (right_product[-1-i] if i < len(nums)-1 else 1))
37-
return answer
36+
answer.append((left_product[i-1] if i>0 else 1)* (right_product[-2-i] if i < len(nums)-1 else 1))
37+
return answer
38+

valid-anagram/devulbae.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Blind 75 - LeetCode Problem 242: Valid Anagram
3+
https://leetcode.com/problems/valid-anagram/
4+
5+
t가 s의 애너그림인지 확인하기
6+
"""
7+
from collections import Counter
8+
9+
class Solution:
10+
def isAnagram(self, s: str, t: str) -> bool:
11+
if len(s) != len(t):
12+
return False
13+
14+
return Counter(s) == Counter(t)
15+

0 commit comments

Comments
 (0)