visit
Build your foundation first: We generally force ourselves to get the solution anyway, and once we see the solution, we feel bad about ourselves, and all the negative self-talk comes into play. But, most people do not understand that you must know the basics first before solving that particular problem. How can you expect yourself to play chess well if you don’t know how the coins move? Clear your fundamentals/syntax of whatever programming language, then push yourself to solve the problem.
Getting to the solution is not everything: You should start valuing your efforts rather than getting the solution. Problem-solving skills are developed in those 30 minutes of fighting with the problem to get the solution. Sometimes, when you are not able to get the solution on the initial days, it is okay to look into the solutions by others, but it should not be a regular practice.
Don’t code in your head: Pick up a pen and paper, try to think of all the possible solutions, and focus on building up the solution. Start with the smallest example, try to come up with a solution, and then optimize it with edge case scenarios, etc.
Concepts are limited. Problems are infinite: There are more than 2000+ problems on Leetcode, and you don’t need to solve all of them. I just coded it as a matter of consistency. However, you need not solve every single problem every day if you want to improve your problem-solving.
Read other’s code: Even if I could solve the problem on my own, I always go to the comment section and quickly scan over superior solutions. You may not be aware of how many more effective approaches and viewpoints there are to solving the same issue. Also, I have done many open sources, so it has helped me to view others co’ code in a better way.
Always time yourself: Establish a timer for each task; the breakdown is as follows: easy tasks take around 15 minutes, medium tasks take about 30 minutes, and hard tasks take about 45 minutes. Try not to enjoy the moment of finding the answer right away.
Don’t care about ratings: No matter how many questions you solve in the contest, show up every time. Once you show up, you have completed the hardest part.
Up-solve the contest questions again: After the contest try to solve the questions without any time limit, if you don’t get it then check other’s solutions understand what they have done, read about that particular topic, and solve it back again using the specific knowledge.
I have answered many more questions about my journey in the video below. Do watch, like, subscribe to my channel to show your support 🙏🏻
“The important thing is not to stop questioning. Curiosity has its own reason for existing.” — Albert Einstein.
In the end, it doesn’t matter how smart or dumb or lucky you are, if you are consistent enough you can outwork all the people you think are talented or smarter than you. Also, life is not something that happens on weekends. It is something that happens every single day.
Also published .