Second best path in a graph
Filed under OLA
The question
Given an acyclic graph and a function f(x) that returns the best path between two nodes, find a function g(x) that returns the second best path.
No write-up yet. Related questions below have one.
Related OLA questions
Collected from public candidate posts and coding forums. Updated Nov 2026.