DSA
Any DSA solvers? First time solving DSA and preparing myself to switch to better product based companies for higher package. My question is: When I solve LeetCode, I am able to understand the question, come up with initial approach too but without looking into solution or explanation I am unable to solve it completely!😢 while watching a Youtube videos I am perfectly able to understand and solve the problem but when I solve a problem alone(without any resource) or live solve in mock interviews, I am stuck..
Anyone's gone thru the same phase, how to uplift myself from here? TIA
Don't worry, I too was once a noob. Start with Leetcode's daily challenge and maintain the streak. Give yourselves 45 minutes of time to think on your own. If still you couldn't do, look at the first hint. Look at next hint after 10 minutes. If you still cannot do it, look at a solution and finish. But add this to a spreadsheet and revisit it exactly after a week on weekends. It takes time, but you'll grasp it sooner.
Nice...Will try it out. Tq♦️
You may try this approach
- Choose a genre of question Let's say Strings
- Practice that section in geeks for geeks
- While you go through that section in geeks for geeks ( be lenient here you may see the solution but you should code it up)
- Once you have spent some time with this section in geeks for geeks. Let's stay you browsed about 30-35 question
- Go back to leet code
- Apply filter for your genre (ie Strings)
- Start solving easy problems
- If you start solving easy in 1hr
- Get started with medium
- If 7,8,9 do not work Repeat 4 with more coverage
Great will try it tq♦️