3 ms·
How do you pick representative problems on leetcode? He says to pick 100-150 and master them... how do you know which ones to master?
by throwaway123x2 5y ago
How do you pick representative problems on leetcode? He says to pick 100-150 and master them... how do you know which ones to master?
- dominotw 5y agopick some from each pattern. Adjust more or less based on your comfort with each pattern eg: pick more sliding window pattern, dp, greedy vs pick less for binary tree/dfs problems.
- eulers_secret 5y agoThis is where I’m stuck: how do we know which patterns are possibilities? I’ve never seen a “patterns for leet code” website, yet. Further, how does a naive person know which pattern applies to a problem? Without that knowledge, how can I vet a learning resource and know I’m not wasting my time?
- dominotw 5y ago> i’ve never seen a “patterns for leet code” website, yet. https://hackernoon.com/14-patterns-to-ace-any-coding-interview-question-c5bb3357f6ed https://hackernoon.com/14-patterns-to-ace-any-coding-intervi... > Further, how does a naive person know which pattern applies to a problem? Without that knowledge, how can I vet a learning resource and know I’m not wasting my time? Problems in leetcode have tags under "related topics" and you can look at discussions to find out the pattern. That said, sometimes its not simple pattern matching. Its an itution that you can develop if you keep solving leetcode problems.