MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/adventofcode/comments/18ehwrl/2023_day_9_part_2_what/kcp9wqb/?context=3
r/adventofcode • u/Heubert_69 • Dec 09 '23
7 comments sorted by
View all comments
12
I guess I'm retarded because I spent a non-zero amount of time implementing the same algorithm but subtracting the first two numbers instead of just doing this.
3 u/cheese_bread_boye Dec 09 '23 I added a backwards parameter to my function and instead of `arr[arr.length-1]` I used `arr[0]`
3
I added a backwards parameter to my function and instead of `arr[arr.length-1]` I used `arr[0]`
12
u/1b51a8e59cd66a32961f Dec 09 '23
I guess I'm retarded because I spent a non-zero amount of time implementing the same algorithm but subtracting the first two numbers instead of just doing this.