Skip to content

Commit eb3285e

Browse files
author
sangbeenmoon
committed
add documentation to two-sum.
1 parent 3c2dd75 commit eb3285e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

two-sum/sangbeenmoon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# time : O(n^2)
2+
# space : O(1)
13
class Solution:
24
def twoSum(self, nums: List[int], target: int) -> List[int]:
35
for i in range(len(nums)):

0 commit comments

Comments
 (0)