We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8e273 commit b1d3bafCopy full SHA for b1d3baf
algorithms/two_pointers/three_sum/__init__.py
@@ -4,7 +4,7 @@
4
def three_sum(nums: List[int]) -> List[List[int]]:
5
"""
6
Complexity Analysis:
7
- Ww assume that n is the length of the input array
+ We assume that n is the length of the input array
8
9
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²).
10
This is due to the nested loops in the algorithm. We perform n iterations of the outer loop, and each iteration
0 commit comments