Skip to content

Commit 1242b3e

Browse files
committed
two-sum complexity
1 parent 2064257 commit 1242b3e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

two-sum/sungjinwi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
TC : for문 내부 for문
3+
O(N^2)
4+
SC : 추가적인 메모리 쓰지 않으므로
5+
O(1)
6+
"""
7+
18
class Solution:
29
def twoSum(self, nums: List[int], target: int) -> List[int]:
310
for i in nums :

0 commit comments

Comments
 (0)