Skip to content

Leetcode Strategy

Study Tip: After solving a problem, it's natural to want to move on to the next problem quickly. However, we highly recommend that you check out the discuss section and/or the official solution article, even if you solved the problem with ease.

Most problems can be solved in several ways, and each problem may present a learning opportunity. Compare your solution to others' code and read their explanations. Look for more efficient solutions, look for any data structures or algorithms that you are unfamiliar with, and don't be afraid to expose yourself to code written in other languages.

If you find a more efficient solution, it's excellent practice to solve the problem again from scratch while trying to implement the more efficient solution on your own. If you find a data structure or algorithm that you did not know, check out the explore card, read a few high-quality posts, or search for a study guide for that topic. Most importantly, take that information with you to use the next time you encounter a similar problem!

On this page

No Headings