This day I was burnt by assuming the bytes will fall one by one on every step. You never get the right answer for the tests and it will defintively not simplify the code...
@chrisbiscardiАй бұрын
yeah I also thought this was going to be the problem when I was reading it.
@hukasuАй бұрын
With binary search you only need to do 12 tests instead of 3450
@DocBolleАй бұрын
I did a linear search in part2 which took about 30s. Then I realized that it could be done with binary search and ended up with 18ms.
@abc-nw3hiАй бұрын
maybe they should take the chance and be the one source using correct wording for kibibyte next time xD Btw thanks for the great educational videos :)
@aderakin5395Ай бұрын
after day 17, today kinda boring tbh
@chrisbiscardiАй бұрын
@@aderakin5395 it's nice to have boring days interleaved with the interesting ones when the problem set lasts for an entire month