DEV Community


Discussion on: Container with Most Water

benph profile image

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!

steadbytes profile image
Ben Steadman Author

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!