MeridianLink interview question

Why would you use Djikstra's algorithm?