← Whiteboard questions

Pattern

Advanced Graphs

These problems add weights, costs or grouping rules to the basic walk. Shortest paths over weighted links need a heap, and grouping problems often need a union-find structure. Costs are usually O(E log V), or close to O(E).

Advanced Graphs interview questions and solutions