This is my first shot…I solved the problem by brute force, but my solution runs forever. Almost 1 hour!
A nice reminder why finding a decent algorithm is priceless.
Therefore only “Part 1”. This has to be faster. Meanwhile…
This is my first shot…I solved the problem by brute force, but my solution runs forever. Almost 1 hour!
A nice reminder why finding a decent algorithm is priceless.
Therefore only “Part 1”. This has to be faster. Meanwhile…