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 1a29395 commit b4f9649Copy full SHA for b4f9649
two-sum/sunjae95.js
@@ -8,7 +8,7 @@
8
/**
9
* @description brainstorming 1 solve
10
* time complexity: O(n^2)
11
- * space complexity: O(n)
+ * space complexity: O(1)
12
*/
13
var twoSum = function (nums, target) {
14
for (let i = 0; i < nums.length; i++) {
0 commit comments