Seems to me it's one and the same. I just do problems and their related problems. Then I try to memorize and understand solutions if I can't get AC in 15, 25, or 45 mins.
From experience? Sometimes. 🤣
Understanding the solution is more important than memorizing.
Firecode.io - the entire premise is to get you to cram and vomit on iDay lol
Working Parents
Yesterday
883
What do you think is wrong with a kid who got rejected by 9 colleges?
India
Yesterday
935
Modi is a legend, will be remembered for centuries to come
Working Parents
12h
1017
Closed now - thank you all
Tech Industry
Yesterday
275
Age recommendation for leadership role
Tech Industry
Yesterday
2711
Quitting this Slave life
Because it’s hard to memorize (I don’t have a photographic memory), and good interviewers often tweak the questions slightly. So it’ better to know how the problem is solved mentally, and memorize the corner cases. Anyway.... I am bad at leetcode. Too much work. 😭 but I need it for FAANG jobs.
For me, Learn by doing is the best way. If you’re familiar with those and have cs background, u just need to look at the good solutions. Otherwise it’ll take time to learn. Solving problems yourself is the best way to learn. I don’t think there’s a shortcut
Yeah there are hundreds of them. I really enjoy solving Roman Numeral one. It took me like two hour something. Mostly just doing some testing before hand to make sure my solution is working before I start writing the code. That’s a classic example. I did not really know how to read roman numeral before hand (only the basic)... I would not the full problem as interview, maybe a smaller problem (limit the range).