Skip to content

Interview Solver

FeaturesPricingHelp
Sign In
FeaturesPricingHelpSign In
Interview Questions›Topics›Shortest Path

Shortest Path Interview Questions

Master 30 shortest path problems frequently asked in technical interviews. These questions test your understanding of shortest pathconcepts and are essential for coding interview success.

30
Total Problems
0
Easy
18
Medium
12
Hard

Related Topics

Graph TheoryHeap (Priority Queue)ArrayBreadth-First SearchDijkstra's AlgorithmMatrixDepth-First SearchDynamic Programming
#2230MediumFrequency: 76.6%

Minimum Cost to Reach City With Discounts

Asked at Flipkart
Graph TheoryHeap (Priority Queue)Shortest PathDijkstra's Algorithm
#1
Rank
#399MediumFrequency: 70.2%

Evaluate Division

Asked at Uber
ArrayStringDepth-First SearchBreadth-First SearchUnion-FindGraph TheoryShortest PathBellman–Ford AlgorithmFloyd–Warshall Algorithm
#2
Rank
#803MediumFrequency: 65.5%

Cheapest Flights Within K Stops

Asked at Airbnb
Dynamic ProgrammingDepth-First SearchBreadth-First SearchGraph TheoryHeap (Priority Queue)Shortest Path
#3
Rank
#3627MediumFrequency: 65.4%

Find Minimum Time to Reach Last Room I

Asked at Uber
ArrayGraph TheoryHeap (Priority Queue)MatrixShortest Path
#4
Rank
#505MediumFrequency: 54.1%

The Maze II

Asked at Uber
ArrayDepth-First SearchBreadth-First SearchGraph TheoryHeap (Priority Queue)MatrixShortest PathDijkstra's AlgorithmHeuristic SearchA* Search
#5
Rank
#3628MediumFrequency: 52.1%

Find Minimum Time to Reach Last Room II

Asked at Uber
ArrayGraph TheoryHeap (Priority Queue)MatrixShortest Path
#6
Rank
#1456MediumFrequency: 47.5%

Find the City With the Smallest Number of Neighbors at a Threshold Distance

Asked at Uber
Dynamic ProgrammingGraph TheoryShortest PathDijkstra's AlgorithmBellman–Ford AlgorithmFloyd–Warshall Algorithm
#7
Rank
#1485HardFrequency: 44.8%

Minimum Cost to Make at Least One Valid Path in a Grid

Asked at Uber
ArrayBreadth-First SearchGraph TheoryHeap (Priority Queue)MatrixShortest Path0-1 BFSDijkstra's Algorithm
#8
Rank
#744MediumFrequency: 41.2%

Network Delay Time

Asked at Salesforce
Depth-First SearchBreadth-First SearchGraph TheoryHeap (Priority Queue)Shortest PathDijkstra's Algorithm
#9
Rank
#3655MediumFrequency: 32.8%

Digit Operations to Make Two Integers Equal

Asked at Microsoft
MathGraph TheoryHeap (Priority Queue)Number TheoryShortest Path
#10
Rank
#2321HardFrequency: 31.8%

Minimum Weighted Subgraph With the Required Paths

Asked at Google
Graph TheoryHeap (Priority Queue)Shortest Path
#11
Rank
#3386HardFrequency: 27.3%

Find Edges in Shortest Paths

Asked at DoorDash
Depth-First SearchBreadth-First SearchGraph TheoryHeap (Priority Queue)Shortest Path
#12
Rank
#1959MediumFrequency: 26.7%

Minimum Path Cost in a Hidden Grid

Asked at Meta
ArrayDepth-First SearchBreadth-First SearchGraph TheoryHeap (Priority Queue)MatrixInteractiveShortest Path
#13
Rank
#1325MediumFrequency: 25.4%

Path with Maximum Probability

Asked at Google
ArrayGraph TheoryHeap (Priority Queue)Shortest PathDijkstra's Algorithm
#14
Rank
#3887MediumFrequency: 25.3%

Minimum Cost Path with Edge Reversals

Asked at Oracle
Graph TheoryHeap (Priority Queue)Shortest Path
#15
Rank
#2090MediumFrequency: 24.4%

Number of Ways to Arrive at Destination

Asked at Google
Dynamic ProgrammingGraph TheoryTopological SortShortest PathDijkstra's Algorithm
#16
Rank
#2375HardFrequency: 23.3%

Minimum Obstacle Removal to Reach Corner

Asked at Google
ArrayBreadth-First SearchGraph TheoryHeap (Priority Queue)MatrixShortest Path0-1 BFSDijkstra's Algorithm
#17
Rank
#1912MediumFrequency: 20.9%

Number of Restricted Paths From First to Last Node

Asked at Google
Dynamic ProgrammingGraph TheoryTopological SortHeap (Priority Queue)Shortest PathDijkstra's Algorithm
#18
Rank
#3720MediumFrequency: 20.3%

Minimize the Maximum Edge Weight of Graph

Asked at Uber
Binary SearchDepth-First SearchBreadth-First SearchGraph TheoryShortest Path
#19
Rank
#2056MediumFrequency: 20%

Jump Game VIII

Asked at Amazon
ArrayDynamic ProgrammingStackGraph TheoryMonotonic StackShortest Path
#20
Rank
#2711HardFrequency: 16.1%

Minimum Time to Visit a Cell In a Grid

Asked at Microsoft
ArrayBreadth-First SearchGraph TheoryHeap (Priority Queue)MatrixShortest Path
#21
Rank
#3558MediumFrequency: 14.6%

Find a Safe Walk Through a Grid

Asked at Google
ArrayBreadth-First SearchGraph TheoryHeap (Priority Queue)MatrixShortest Path
#22
Rank
#2171HardFrequency: 12.6%

Second Minimum Time to Reach Destination

Asked at Google
Breadth-First SearchGraph TheoryShortest PathDijkstra's AlgorithmK Shortest Path
#23
Rank
#3235MediumFrequency: 10.3%

Minimum Cost to Convert String I

Asked at Amazon
ArrayStringGraph TheoryShortest Path
#24
Rank
#3919HardFrequency: 10.3%

Network Recovery Pathways

Asked at Amazon
ArrayBinary SearchDynamic ProgrammingGraph TheoryTopological SortHeap (Priority Queue)Shortest Path
#25
Rank
#3238HardFrequency: 7.3%

Minimum Cost to Convert String II

Asked at Microsoft
ArrayStringDynamic ProgrammingGraph TheoryTrieShortest Path
#26
Rank
#2803HardFrequency: 5.5%

Modify Graph Edge Weights

Asked at Google
Graph TheoryHeap (Priority Queue)Shortest Path
#27
Rank
#499HardFrequency: 5%

The Maze III

Asked at Google
ArrayStringDepth-First SearchBreadth-First SearchGraph TheoryHeap (Priority Queue)MatrixShortest PathDijkstra's AlgorithmHeuristic SearchA* Search
#28
Rank
#918HardFrequency: 5%

Reachable Nodes In Subdivided Graph

Asked at Google
Graph TheoryHeap (Priority Queue)Shortest PathDijkstra's Algorithm
#29
Rank
#3976HardFrequency: 5%

Minimum Cost to Buy Apples II

Asked at Amazon
ArrayGraph TheoryHeap (Priority Queue)Shortest Path
#30
Rank
View All Topics

Master Shortest Path in Real Interviews

Get AI-powered assistance when solving shortest path problems during your actual interviews.

Get Started Free

No credit card required

Interview Solver
  • Home
  • About
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Help Center
  • Developers
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Refund & Cancellation
  • Discord Community
  • Affiliate Program
  • Compare
  • All Comparisons
  • vs Final Round AI
  • vs UltraCode
  • vs Interview Coder
  • vs LockedIn AI
  • vs AI Apply
  • Free Tools
  • ATS Resume Checker
  • STAR Method Builder
  • Salary Lookup
  • Big O Cheat Sheet
  • Total Comp Calculator
  • View All →
  • Interview Questions
  • Google Questions
  • Amazon Questions
  • Microsoft Questions
  • Meta Questions
  • Apple Questions
  • TikTok Questions
  • View All →
© 2026 Interview Solver, Inc. All rights reserved.