Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Given that the comment says "Find 2 distinct numbers that sum to 2020", I expect duplicate entries are not allowed.


Yes, but I cannot find the same in the problem definition:

"they need you to find the two entries that sum to 2020 and then multiply those two numbers together"

https://adventofcode.com/2020/day/1


There are frequently non-stated properties of the input in Advent of Code that simplify the problem a bit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: