← Oracle questions

Shortest Path Between Cities

Filed under Oracle · Also reported at JPMorgan Chase

Given an undirected weighted graph of cities and positive road lengths, along with a source city and a destination city, find the shortest distance between source and destination using Dijkstra's…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.