Skip to content

Instantly share code, notes, and snippets.

View ashuorg's full-sized avatar
🎯
Focusing

Ashutosh Verma ashuorg

🎯
Focusing
View GitHub Profile
function threeNumberSum(array, targetSum) {
const arr = array.sort(function(a, b){
return a - b;
});
const arrLen = array.length;
const threeNumSum = [];
console.log(array, targetSum);
for (let i=0; i < arrLen - 2; i += 1) {