Advent of Code 2024 Day 2

preview_player
Показать описание
Placed 110/50.

Had to try a few times to get both the problem statement and my input data :(
Рекомендации по теме
Комментарии
Автор

If you want to optimize part 2, you basically only have to check the index that fails (e.g. when index 2 compared to 3 fails, you check without index 2 or index 3), except when the first one that fails is index 1, then you also need to test without index 0, as that's the one that sets up if the range should be asc/desc. Was pretty pleased to figure that out on stream today, especially when after reading the reddit threads, that (at least none of the top submissions) figured it out 😊

NKCSS
Автор

The same thing happened to me with the data not loading!
Thanks for the video :)

artemistrubacheev
Автор

thanks for sharing your answer, helped me debug my own! (turned out i forgot to check the difference of the first pair in a report - oops!)

dooshii
Автор

Great analysis, thank you! Could you help me with something unrelated: My OKX wallet holds some USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How should I go about transferring them to Binance?

JohnEdwardsSmartTV