DEV Community

Cover image for How I solved 100 problems on LeetCode and what I was doing wrong? πŸ‘¨πŸΌβ€πŸ’»
Sergey Panarin
Sergey Panarin

Posted on

1

How I solved 100 problems on LeetCode and what I was doing wrong? πŸ‘¨πŸΌβ€πŸ’»

LeetCode is a website with algorithmic problems similar to those in FAANG interviews and other IT companies. After solving over 100 problems in six months and discussing with others, I realized what I did wrong and right. Here's my experience to help you prepare more efficiently and quickly.


Systematic Approach βœ…
Instead of randomly tackling problems, I purchased a preparation course and focused on solving problems by topic. I studied theory, reviewed solutions, and then attempted the problems. Investing $100 in the course was one of my best decisions.

Avoiding Miracle Hopes ❌
Realizing that prolonged contemplation didn't lead to solutions, I shifted to studying problem solutions first. Understanding algorithms and techniques from these solutions made it easier to solve similar problems in 5-20 minutes.

Setting Clear Goals and Tracking Progress ❌
Initially, I lacked a sense of progress. Keeping a journal with problem analyses, noting challenges, and maintaining statistics on tasks solved and course progress helped track growth and maintain motivation.

Choosing the Wrong Programming Language ❌
Using JavaScript/TypeScript, I faced challenges in writing solutions. I'm transitioning to Python, which simplifies problem-solving. Even my friend at Google in Germany recommended Python for its simplicity and built-in data structures.

Python vs. JavaScript – and Python wins! πŸ’ͺ
Python vs. JavaScript – and Python wins! πŸ’ͺ


Share your LeetCode experience, mistakes, and successes in the comments! πŸ‘‹

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay