← Back to context

Comment by PandaRider

4 hours ago

I have studied algorithms in college. I believe the goals of leetcode vs the goals of graph theory may be against each other.

A good graph theory course abstracts away the details of code and pursues the goal of understanding how many problems can be expressed concisely and clearly through graphs.

A good leetcode practice ... honestly just hones how patient you are in debugging and memorising various code patterns.

If you want to pursue money, it's almost always better to pursue leetcode exclusively

This is not true.

Graph theory and algorithm engineering overlap a great deal. And not only in the directly graph theoretic terms like BFS, Dijkstra, Flow, etc, but also in that you need a good grasp of greedy algorithms, dynamic programming, divide and conquer, and several other general techniques.