This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | |