Hey! I'm back after a while of having too much work and then being sick, so I have some catching up to do as well 🙂
Both of todays parts were begging to be solved with integer linear programming, but I managed to ignore that and bruteforce my way trough everything instead:
e
Edgars
12/14/2019, 11:20 PM
Curious, how many iterations does your binary search go through before finding the answer?
k
karelpeeters
12/14/2019, 11:24 PM
Only
21
iterations actually, that's not that bad.
karelpeeters
12/14/2019, 11:36 PM
Hmm, looks like you're also iterating at least a couple of times, how many is that?
e
Edgars
12/17/2019, 2:47 PM
Missed the notification. It gets it done in 6-7 iterations.