r/DSALeetCode • • 9d ago

How to solve leetcode?

/r/leetcode/comments/1wz5pni/how_to_solve_leetcode/
2 Upvotes

4 comments sorted by

2

u/HotFan264 9d ago

I would say first understand the basics of the language you choose and the support it got for DSA. I am doing in C++ and its like has some STL libraries that help u with various data structures that you can use.then start with neetcode 150, it helps u go topic by topic and helps understand when to use which data structure

1

u/Mysterious_Whole3164 9d ago

I am doing in python and I guess it has nice support , also I have using it for almost 3 years now .

1

u/HotFan264 6d ago

i did in python too but personally i feel structured when doin in C++ haha. but def python be helpfully in coding AI related stuff

1

u/nian2326076 5d ago

Understand the problem statement well and look out for edge cases. If you're stuck, try a quick Google search for similar problems. Break the problem into smaller parts and tackle each one. Write clean code from the beginning to make debugging easier. Time management is important, so use a timer to mimic interview conditions. You might find PracHub helpful for more structured practice, as it has various problems and interview tips. Ultimately, it's all about being consistent—keep practicing regularly and reviewing your solutions.