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 4ad8e18 commit eade984Copy full SHA for eade984
Sprint-1/JavaScript/hasPairWithSum/hasPairWithSum.js
@@ -2,8 +2,8 @@
2
* Find if there is a pair of numbers that sum to a given target value.
3
*
4
* Time Complexity: O(n)
5
- * Space Complexity: O(n)
6
- * Optimal Time Complexity: O(1)
+ * Space Complexity: O(1)
+ * Optimal Time Complexity: O(n)
7
8
* @param {Array<number>} numbers - Array of numbers to search through
9
* @param {number} target - Target sum to find
0 commit comments