I'm […]
🌉 bridged from ⁂ https://social.axfive.net/@taylor, follow @ap.brid.gy to interact
Note, this was after several hours of trying to solve it in a more clever way that still didn't work, so finding out the actual answer was to not even really try was quite frustrating.
Note, this was after several hours of trying to solve it in a more clever way that still didn't work, so finding out the actual answer was to not even really try was quite frustrating.
Went in and did it with dynamic programming. Takes about twice the time my original solution did, but I expected it to be slower, given that the previous one was just maintaining counters and running through linearly. My previous solution could probably be a […]
Went in and did it with dynamic programming. Takes about twice the time my original solution did, but I expected it to be slower, given that the previous one was just maintaining counters and running through linearly. My previous solution could probably be a […]