Lumen

Lumen

Eager to know more, about the world, about the intelligence, and about myself.
github

LeetCode Problem Roadmap

Experience after 500 + LeetCode problem#

I stumbled upon a YouTube video by NeetCode today, where he shared his insights after tackling over 500 LeetCode problems. He candidly discussed a few missteps from his past and offered some valuable advice, which I've summarized below:

  1. Choosing the Right Language: NeetCode leans towards simpler languages like Python for coding interviews due to their efficiency. He doesn't particularly recommend C++ for this purpose.
  2. Sequential Problem Solving: According to NeetCode, problems should be approached in a certain order. For instance, one should master solving backtracking problems before moving on to Dynamic Programming, or tackle Tree problems before trying out Greedy algorithms. He even offers a handy roadmap to guide this process, as shown below.
  3. Don’t waste time sticking to a problem: he believes that each problem should be solved within 45-60 minutes. If you're stuck beyond this timeframe, it might be time to seek help from the provided solutions.
  4. Regular Reviews matters: The strategies and tricks behind each problem need to be reviewed periodically to reinforce your understanding. I think summarizing is the universal first principle of learning anything.
  5. LeetCode isn’t everything: there is a diminishing return from solving more LeetCode problems once you've reached a certain level of proficiency.

While I wholeheartedly agree with points 3, 4, and 5, the second point resonated with me the most, prompting me to pen this piece. It provided a heuristic for my learning journey, which is the most valuable information I got from this video.

But given my personal career of interest, I do most of my LeetCode problem in cpp. LeetCode helps me to get familiar with the std library as well as the language itself. Also, working with cpp is a inevitable fate of people working with robotics. I do think this is part of the reason I loving solving LeetCode problem daily.

LeetCode Problem Roadmap illu roadmap

LeetCode Problem Roadmap illu course roadmap

References#

  1. https://www.youtube.com/watch?v=8wysIxzqgPI
  2. https://neetcode.io/roadmap
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.