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 25eb16c commit 4e210bcCopy full SHA for 4e210bc
0015-3sum/solution.py
@@ -1,6 +1,7 @@
1
# Approach 1 - Two Pointers
2
3
# Time: O(n^2)
4
+# Space: O(log n) for sorting
5
6
class Solution:
7
def threeSum(self, nums: List[int]) -> List[List[int]]:
0 commit comments