This post really challenges my cynicism of leet-code style problems. "All tests pass" is the least interesting part, but seems to get the most focus. This one puts almost no focus on that, and really takes off when we get to the interesting stuff.
I'll be putting a bit of time into this one. Thanks!
Thanks Ben, I agree 100%. Unfortunately I think too much focus is put on the competitive side of these problems e.g. "how can I get the tests to pass as quickly as possible" or wrote memorisation of common solutions rather than the process of solving the problem and how/why an algorithm actually works.
Glad you're willing to take the time on my post - I hope you enjoy it!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.