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\r\n 4,\r\n 3,\r\n 4,\r\n 4,\r\n 11,\r\n 2,\r\n 10,\r\n 5,\r\n 0,\r\n 2,\r\n 4,\r\n 12,\r\n 0,\r\n 9,\r\n 11,\r\n 0,\r\n 12,\r\n 3,\r\n 15,\r\n 6,\r\n 11,\r\n 0,\r\n 1,\r\n 13,\r\n 11,\r\n 13,\r\n 5,\r\n 10,\r\n 7,\r\n 15,\r\n 13,\r\n 10,\r\n 6,\r\n 4,\r\n 7,\r\n 4,\r\n 1,\r\n 1,\r\n 2,\r\n 13,\r\n 2,\r\n 1,\r\n 2,\r\n 7,\r\n 6,\r\n 5,\r\n 12,\r\n 13,\r\n 1,\r\n 0,\r\n 8,\r\n 12,\r\n 4,\r\n 7,\r\n 6,\r\n 11,\r\n 11,\r\n 8,\r\n 5,\r\n 3,\r\n 13,\r\n 15,\r\n 7,\r\n 2,\r\n 6,\r\n 4,\r\n 10,\r\n 13,\r\n 7,\r\n 8,\r\n 6,\r\n 4,\r\n 9,\r\n 5,\r\n 11,\r\n 7,\r\n 10,\r\n 13,\r\n 0,\r\n 7,\r\n 3,\r\n 5,\r\n 12,\r\n 12,\r\n 3,\r\n 0,\r\n 5,\r\n 2,\r\n 7,\r\n 0,\r\n 2,\r\n 11,\r\n 11,\r\n 12,\r\n 15,\r\n 8,\r\n 3,\r\n 2,\r\n 7,\r\n 6,\r\n 1,\r\n 15,\r\n 1,\r\n 11,\r\n 13,\r\n 12,\r\n 0,\r\n 2,\r\n 0,\r\n 9,\r\n 7,\r\n 13,\r\n 1,\r\n 2,\r\n 6,\r\n 14,\r\n 6,\r\n 2,\r\n 7,\r\n 1,\r\n 12,\r\n 2,\r\n 2,\r\n 3,\r\n 3,\r\n 3,\r\n 8,\r\n 4\r\n]\r\nconst twoSum = (array, goal) =\u003E {\r\n let indexes = [];\r\n let count = 0;\r\n for(let i = 0; i \u003C array.length; i\u002B\u002B){\r\n for(let j = i \u002B 1; j \u003C array.length; j\u002B\u002B){\r\n count\u002B\u002B;\r\n if (array[i] \u002B array[j] === goal) {\r\n\t\t\tindexes.push(i);\r\n\t\t\tindexes.push(j);\r\n console.log(\u0022Func 1 =\u003E \u0022 \u002B count);\r\n return indexes;\r\n }\r\n }\r\n }\r\n \r\n return indexes;\r\n}\r\nconsole.log(twoSum(input, 18));","IsDeferred":false},{"Name":"func 2","Code":"const input = [\r\n 1,\r\n 8,\r\n 5,\r\n 12,\r\n 3,\r\n 11,\r\n 14,\r\n 7,\r\n 9,\r\n 13,\r\n 4,\r\n 7,\r\n 0,\r\n 7,\r\n 3,\r\n 5,\r\n 1,\r\n 2,\r\n 1,\r\n 7,\r\n 4,\r\n 6,\r\n 11,\r\n 3,\r\n 12,\r\n 9,\r\n 13,\r\n 4,\r\n 15,\r\n 9,\r\n 6,\r\n 10,\r\n 12,\r\n 9,\r\n 3,\r\n 13,\r\n 10,\r\n 15,\r\n 0,\r\n 10,\r\n 12,\r\n 4,\r\n 4,\r\n 3,\r\n 10,\r\n 14,\r\n 11,\r\n 1,\r\n 2,\r\n 12,\r\n 11,\r\n 4,\r\n 2,\r\n 1,\r\n 4,\r\n 15,\r\n 5,\r\n 5,\r\n 9,\r\n 6,\r\n 10,\r\n 13,\r\n 3,\r\n 12,\r\n 15,\r\n 12,\r\n 3,\r\n 15,\r\n 1,\r\n 5,\r\n 15,\r\n 2,\r\n 9,\r\n 0,\r\n 15,\r\n 15,\r\n 14,\r\n 0,\r\n 15,\r\n 1,\r\n 13,\r\n 10,\r\n 3,\r\n 8,\r\n 6,\r\n 9,\r\n 10,\r\n 12,\r\n 15,\r\n 3,\r\n 7,\r\n 2,\r\n 4,\r\n 8,\r\n 8,\r\n 13,\r\n 8,\r\n 8,\r\n 3,\r\n 9,\r\n 5,\r\n 8,\r\n 8,\r\n 4,\r\n 13,\r\n 13,\r\n 2,\r\n 8,\r\n 3,\r\n 5,\r\n 14,\r\n 14,\r\n 3,\r\n 12,\r\n 13,\r\n 1,\r\n 10,\r\n 2,\r\n 10,\r\n 12,\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,\r\n 8,\r\n 4\r\n]\r\nconst twoSum2 = (array, goal) =\u003E {\r\n let mapOfNumbers = {};\r\n let twoIndexes = [];\r\n let count = 0;\r\n for (let i = 0; i \u003C array.length; i\u002B\u002B) {\r\n mapOfNumbers[array[i]] = i;\r\n }\r\n \r\n for (let i = 0; i \u003C array.length; i\u002B\u002B) {\r\n count\u002B\u002B;\r\n let target = goal - array[i];\r\n if(mapOfNumbers[target] !== i \u0026\u0026 mapOfNumbers[target] !== undefined) {\r\n twoIndexes.push(i);\r\n twoIndexes.push(mapOfNumbers[target]);\r\n console.log(\u0022Func 2 =\u003E \u0022 \u002B count);\r\n return twoIndexes;\r\n }\r\n\t}\r\n console.log(\u0022Func 2 =\u003E \u0022 \u002B count);\r\n\treturn twoIndexes;\r\n}\r\nconsole.log(twoSum2(input, 18));","IsDeferred":false}]}