OptiverSoftware EngineerSenior Software EngineerQuestion #89

Given a graph and two vertices, implement Dijkstra's algorithm to find the shortest distance between the pair. Additionally, return an error if there are multiple shortest paths with the same distance between the vertices.

Unlock the Full Solution

Enter your email to get the detailed step-by-step solution to this Optiver interview question, plus access to free interview prep resources.

We'll also send you a free HFT mock interview video.

Get All 120+ Optiver Questions with Solutions

Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.

Schedule a Call