Hacker News new | ask | show | jobs
by samhuk 958 days ago
Although LeetCode does have a strong algo slant, choosing the optimal data structure is almost always a key part in solving the problems.

If you think leetcode-like problems is always about the algo, "BFS or DFS" etc., then at best you are not realizing the data structure choices you are making, at worst you may not be so good at solving them or haven't progress that much through leetcode-like challenges.