3 ms·
>Which is why all the LeetCode interviews always struck me as odd. They focus on algorithms, not data structures, The typical leetcode questions also focus on
by jasode 3y ago
>Which is why all the LeetCode interviews always struck me as odd. They focus on algorithms, not data structures,
The typical leetcode questions also focus on "data structures" because the candidate needs to have the mental catalog of data structures in his brain to pull from when he "pattern matches" on the problem/solution.
The interviewer isn't going to volunteer whether the candidate needs a "priority queue", or "adjacency matrix", or "trie", etc to solve various algorithm questions. If the candidate is stuck, then the interviewer might give a hint to the data structure to use. But of course, too much hand-holding will not make the candidate come across as a strong hire signal.
- no_wizard 3y agoIts been a time since I interviewed in such a manner, perhaps things have shifted. When I was interviewing a few years back, it was algorithm heavy, often a basic data structure was provided and there was alot of focus on traversal (hence the memes around reversing binary trees and such)
- Icathian 3y agoTo add another point of anecdata, my experience very recently at tech companies aligns with the parent comment.