Yeah sooo, I just came up with the brute force O(N^3) approach and just walked away LOL great explanation Tim! EDIT: Tim, I seriously commend your humility after describing your struggles and having to look at the solution - we all do it. It demands my respect and is one of the reasons I will continue to watch your videos. There are way too many people on CZcams pawing of their solutions as 'original'. And we all know that only a handful of people in the world can actually solve problems like this from scratch. In fact, you could probably count on one hand the number of people that could solve an LC 'hard' problem from scratch. It's one thing to praise an explanation video, but even more to give credit where credit is do. Hat's off to you man! *clap*
Yeah sooo, I just came up with the brute force O(N^3) approach and just walked away LOL great explanation Tim!
EDIT: Tim, I seriously commend your humility after describing your struggles and having to look at the solution - we all do it. It demands my respect and is one of the reasons I will continue to watch your videos.
There are way too many people on CZcams pawing of their solutions as 'original'. And we all know that only a handful of people in the world can actually solve problems like this from scratch. In fact, you could probably count on one hand the number of people that could solve an LC 'hard' problem from scratch.
It's one thing to praise an explanation video, but even more to give credit where credit is do. Hat's off to you man! *clap*
That was my first approach too! I was determined not to look it up but after over a hour, I realized enough is enough -_-
This is gold…