While working out/ preparing the problems, do you actually execute the code and see Or just put down the code on whiteboard/ paper?
First, I write it on paper/whiteboard, then run it on leetcode, once it’s accepted, I look at how it compares to others’ code on the runtime distribution chart and optimize it if its runtime is high compared to others.
Wait Leetcode shows you the runtime distributions of the submissions?
Yes, click on ‘Submissions’ tab, click on an Accepted submission, and it’ll show you where it’s at in the distribution. It only shows this for problems that have a sufficient # of accepted submissions though.
Time each and every question and track progress.
Won’t this slow down your progress for covering larger set of questions? How about using geeks4geeks which have answers as well ?
True. I meant the one you're practicing, time it so that you can improve. If you're able to solve them consistently, you can skip the ones which have same logic. After solving a lot I've realized that a lot of problems in dfs, bfs and trees can be skipped. But in arrays each one is different in it's own way.
Linqpad FTW... You will forget after days let's take backtracking like permutations, Number of lines of code is less but doing dump for each function call gives you more understanding
C# only..
Tech Industry
10h
339
How to become a Millionaire
AMA
Yesterday
1248
PM Manager, early 40s, married and ENM (Ethical Non Monogamous) AMA
World Conflicts
9h
345
Why I Find Free Palestine Inspiring
Personal Finance
6h
802
Thank you AAPL and NVDA
World Conflicts
11h
449
Israeli precision-guided munition likely killed group of children playing foosball in Gaza, weapons experts say
whiteboard