Created
December 3, 2020 04:18
-
-
Save AdamMescher/60a1b57fcb37b8c714e1274407da28a8 to your computer and use it in GitHub Desktop.
Advent of Code 2020 Day 01 Part 1
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
for (let i = 0; i < input.length; i++) { | |
for (let j = 0; j < input.length; j++) { | |
if (input[i] + input[j] === 2020) { | |
console.log(`Output: ${input[i]} * ${input[j]} = ${input[i] * input[j]}`) | |
break | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment