These are the steps I follow During my initial days
- 1hr Daily Easy questions (15-20 at least)
- 4-5 Medium question
- 1-2 Hard question
Why so many Easy questions??
Everyone undervalued easy questions. But easy questions are there for a reason.
- Obviously It helps you motivate and boost your confidence.
- Helps you understand why a particular Data structure used in the question.
- Don't just do an easy question for the sake of doing it but understand why you used only that paricular DS to solve it.
- Try to solve it in one try with no mistakes. Helps to mind all the small mistakes which we usually do.
- missing semicolon?
- forget to initialise a variable?
- Runtime Error?
- Try to solve it as fast as you can.
- In leetcode contests timing matters.
- Even a single second delay can cost you 100s of rank.
What about Medium Questions?
- From easy questions As you undertood why and where to use a paricular DS. You'll now find it easy to get the logic for the medium questions.
- Medium questions helps you understand different variations of a particular Data structure.
- These questions helps in how many ways one Data structure can be used.
- These questions helps you to undertand how write a code.
Hard questions are scary?
- One basic thing keep in mind don't directly jump over discuss section.
- If you're not reacing anywhere Gave the question at least 1 hr before taking any hint.
- If you don't get the logic your first step should be go over the google and search for the related topics which you can thing helps to solve the question.
- Still don't get the solution? check the tags of question. You'll know which Data structure you can use.
- Before going to open anyones solution gave the question at least 2hrs. use every hint you can find and try to build up a logic.
- 2 hrs is too much frustating?? leave coding imediately for forever and try to find some other job. Just kidding :) take a deep breath but don't look up the solution. just think!!!
You've solved a problem what now?
- Go to discuss section. Check how other people have solved it.
- There are many people who are stuck on that questions and asking for help in discuss. Try to help them. It'll help enhancing your debugging skills. Anyways always help people in need.
- You've solved one difficult problem? now what party?? Nope. Try to post your solution explaning each any every step used in detail. Believe me it'll you so much in an interview.
I which order Do You need to solve questions?
- Follow any ONE book/tutorial/questions list.
- Don't follow multiple topics at a single time.
- Learn one topic. do, some easy questions, then go for medium then hard.
- On weekends/any one day do some random questions.
- Never miss leetcode daily.
- CONTESTS are important. Try to give them on time or virtually.
- Never leave any questions incomplete. If you start one problem try to complete it don't keep it for backlog.
**************************************** THE END ********************************************
Do UPVOTE it'll help me motivate to write more such tips and tricks.