Skip to content

Commit b1d3baf

Browse files
chore(docstring): fix typo
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 5c8e273 commit b1d3baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/two_pointers/three_sum/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def three_sum(nums: List[int]) -> List[List[int]]:
55
"""
66
Complexity Analysis:
7-
Ww assume that n is the length of the input array
7+
We assume that n is the length of the input array
88
99
Time Complexity: O(nlog(n)) + O(n^2) = O(n^2) the O(nlog(n)) is due to sorting, overall, the time complexity is O(n²).
1010
This is due to the nested loops in the algorithm. We perform n iterations of the outer loop, and each iteration

0 commit comments

Comments
 (0)