4 ms·
This. You need to grind leetcode enough that you can match the interview question to the leetcode problem. The best case scenario is that you get the exact le
by decafninja 5y ago
This.
You need to grind leetcode enough that you can match the interview question to the leetcode problem.
The best case scenario is that you get the exact leetcode problem more or less. Then you put on a show pretending like you've never seen it before and act like you serendipitously arrive at the optimal solution via iterating it from a naive one.
Less than ideal, but still great is when it's not a perfect match but you can recognize the pattern required to solve it - which comes from grinding. There are a finite number of patterns and sub-patterns into which many interview questions fall into. You could still end up unlucky enough to get a question that does not, but at the end of the day, it's matter of optimizing your chances.