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 2b0b020 commit 1fbf055Copy full SHA for 1fbf055
two-sum/Lustellz.ts
@@ -0,0 +1,6 @@
1
+function twoSum(nums: number[], target: number){
2
+ for(let i = 0; i < nums.length; i++){
3
+ for(let j = i+1; nums.length-j;j++)
4
+ if(nums[j] === target - nums[i]) return [i, j]
5
+ }
6
+};
0 commit comments