4 ms·
You need both. The theory is important for seeing what class of problem you're trying to solve and to give you an idea of what general approaches might work. Th
by jeffreyrogers 6y ago
You need both. The theory is important for seeing what class of problem you're trying to solve and to give you an idea of what general approaches might work. The actual problems are needed to get you skilled in actually applying the theory and for learning how to adapt the basic algorithms/techniques under different conditions.
- graerg 6y agoThis is so on the money. Leetcode/hackerrank are one form of practice, but they're not comprehensive. They're like a practice putting green or a driving range. Very useful practice, but they teach you how to swing the club not how to golf.
- MattGaiser 6y agoExcept all that interviews test is the driving range part.
- graerg 6y agoThis hasn't really been true in my experience. It's one component, definitely, but in general people are also looking to get a sense of how you handle yourself and communicate when you're stuck on something. Most people will agree that the point of interviews isn't to get the right answer, but to show that you can reason about problems and communicate well.