#leetcode i started leetcoding recently. i was able to do 3-5 easy probs per day and now i jumped to mediums after 50 easy probs. mediums are sooooo difficult for me 😢 any suggestions on how I can improve?
I have done around 330 mediums. The only way is to keep doing them.
Do you already understand the algorithms? Are you learning them as you practice? Why do people do leetcode instead of something like Sedgewick's Algorithms book?
After a while you start figuring out the pattern. I didn't use any book, just kept doing the problems. Current tally is 560 I think.
Another problem is that leetcode high vote solution’s readability is horrible.
Agreed, poor readability with no explanation seems to be the requirement for the top solution
Keep doing them
I read 1-2 questions while travelling to office and while coming back. And through the commute I try to think solutions, just think, visualize. Later when I get time, I try to write code. I am at 90 count and slowly medium are becoming easy :)
Keep doing + read some book (epi for example)
Give the lc medium # where you got stuck
Keep doing them
If I am stuck how long until I look at a solution
Depends. If you're early on your practice I'd say go for it in no more than 10 minutes. Learn all the patterns. Then slowly wean yourself off of the urge to look at the solution and try to do it yourself.