BFS
#310 Minimum Height Trees #399 Evaluate Division #802 Find Eventual Safe States #417 Pacific Atlantic Water Flow #2204 Distance to a Cycle #785 Is Graph Bipartite? #286 Walls and Gates #1391 Check Valid Path in Grid #1020 Number of Enclaves #1254 Number of Closed Islands #994 Rotting Oranges
Topological Sort
#207 Course Schedule I #210 Course Schedule II #1136 Parallel Courses #269 Alien Dictionary #444 Sequence Reconstruction #2050 Parallel Courses III
Union-Find
#684 Redundant Connection #685 Redundant Connection II #261 Graph Valid Tree #721 Accounts Merge #737 Sentence Similarity II #547 Number of Provinces #323 Number of Connected Components #352 Data Stream as Disjoint Intervals #827 Making a Large Island #839 Similar String Groups #1061 Lex Smallest Equivalent String #1101 Earliest Moment Everyone Friends #1102 Path With Max Minimum Value #1135 Connecting Cities Min Cost #1168 Optimize Water Distribution #1202 Smallest String With Swaps
DFS
#332 Reconstruct Itinerary #329 Longest Increasing Path in Matrix #2858 Min Edge Reversals #694 Distinct Islands #711 Distinct Islands II #208 Implement Trie (Prefix Tree)
DP
#1494 Parallel Courses II #787 Cheapest Flights Within K Stops
Heap
#1834 Single Threaded CPU #778 Swim in Rising Water #743 Network Delay Time
Binary Search
#875 Koko Eating Bananas