shortest-path Interview Questions
22 interview questions in our bank cover shortest-path, most of them Coding & Leetcode-style Questions. They average 3.4/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about shortest-path: Apple, Google, Uber, Snowflake, ByteDance, and 12 more.
Practice these on the problems board →Companies that ask about shortest-path
Question mix
- Coding & Leetcode-style Questions22
Difficulty
- 2/5 — easy1
- 3/5 — medium12
- 4/5 — hard9
Questions tagged shortest-path
Fastest Commute Mode Through a Grid
3/5Encountered in a Databricks interview, this pathfinding puzzle challenges you to navigate a matrix containing various transportation types, each carrying distinct time and financial tolls, while locating the quickest journey between starting and ending points. The problem evaluates advanced graph search algorithms and tie-breaking logic. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsDatabricksMinimize Path Value (Minimax Path)
3/5Finding paths that minimize the maximum edge weight in a network is a classic graph theory problem frequently encountered in Palantir interviews. The goal is to traverse a weighted undirected graph from a starting vertex to a destination while keeping the highest edge stress along the route as low as possible. This challenge tests your familiarity with modified shortest path algorithms and priority queue strategies. Access the complete problem overview and model solution with a subscription.
Coding & Leetcode-style QuestionsPalantirCheapest Flights Within K Stops
4/5Navigating graph traversal under strict constraints is a frequent hurdle in technical evaluations, similar to this popular interview scenario reported at Apple. You will explore how to compute the most cost-effective path between two network nodes while respecting a maximum limit on intermediate hops. This challenge tests your proficiency with advanced pathfinding algorithms, priority queues, and state-space optimization techniques to handle complex edge weights efficiently. Unlock the comprehensive problem description and optimal code implementation by purchasing a subscription.
Coding & Leetcode-style QuestionsAppleKarat Carpool on Linear Routes
3/5In this Atlassian interview question, you must simulate a scenario where two vehicles start moving simultaneously along connected linear pathways to pick up waiting passengers. The challenge evaluates your graph traversal skills and ability to compute travel durations to determine which vehicle reaches each person first under strict routing constraints. You will need to implement clean logic to handle simultaneous arrivals and route mapping. Unlock the complete problem statement and expert solution by subscribing.
Coding & Leetcode-style QuestionsAtlassianShortest Path with a Mandatory Waypoint
4/5Master graph traversal techniques by tackling this frequently reported Google interview question, which challenges candidates to compute the shortest route through a network while ensuring a mandatory stop at a specified intermediate checkpoint. This problem evaluates your proficiency with advanced pathfinding algorithms, distance metrics, and graph optimization strategies under routing constraints. To successfully navigate network topologies with mandatory nodes, developers must combine classic search heuristics efficiently. Access to the complete problem breakdown, algorithmic strategy, and optimal model solution requires a subscription.
Coding & Leetcode-style QuestionsGoogleNearest Destination on 2D Grid (Multi-Source BFS)
3/5Reported as a classic DoorDash coding interview challenge, this grid-based problem tests your mastery of multi-source breadth-first search algorithms. Candidates must calculate shortest path distances across a spatial map filled with walkable regions, barriers, and target destinations while carefully handling reachability constraints and obstacle interactions. The task emphasizes optimal graph traversal techniques and precise matrix manipulation. Unlock the full problem details, algorithmic approach, and clean production-ready code by obtaining a subscription.
Coding & Leetcode-style QuestionsDoorDashMinimum Distance in Grid to Nearest CVS
3/5Tackle this classic grid traversal challenge featured in software engineering assessments at GE Healthcare. The task involves evaluating spatial coordinates to determine optimal pathways while minimizing aggregate travel distance to designated target locations. You will analyze the trade-offs between brute-force techniques and more sophisticated algorithmic approaches. To view the complete problem breakdown and the optimal source code solution, unlock your subscription today.
Coding & Leetcode-style QuestionsGE HealthcareMinimum Knight Moves on Infinite Chessboard
3/5This engaging puzzle has been reported in coding interviews at Uber and tests your graph traversal capabilities on an infinite grid. The objective is to compute the shortest route for a standard chess piece to travel from a designated origin to a specific destination point. Solving this efficiently typically involves employing breadth-first search heuristics and coordinate geometry. The entire problem details and the accompanying model solution require a subscription.
Coding & Leetcode-style QuestionsUberCheapest Flights Within K Stops
3/5Featured in Snowflake technical interviews, this graph traversal challenge asks you to find the most cost-effective travel route between two locations while strictly capping the number of intermediate connections. It tests your proficiency with weighted pathfinding algorithms, dynamic programming, and managing state constraints within network topologies. Access the comprehensive breakdown, time complexity analysis, and fully working reference solution by subscribing today.
Coding & Leetcode-style QuestionsSnowflakeShortest Path in a Grid (DFS/BFS) with DFS Backtracking + Memo/DP Follow-up
3/5This AppLovin interview question tests your pathfinding expertise by asking you to find the shortest route between two designated points on a grid obstructed by barriers. You will need to implement traversal strategies, compare search paradigms, and handle edge cases where destinations are unreachable. The exercise evaluates your proficiency with graph traversal algorithms and optimization techniques like memoization. Get full access to the complete problem breakdown and the verified model solution with a paid subscription.
Coding & Leetcode-style QuestionsAppLovinPerfect Squares Decomposition (Shortest Path)
3/5This Pinduoduo interview challenge requires expressing a given integer as a sum of the fewest possible square numbers while also reconstructing one valid combination of those terms. It tests your ability to optimize structural paths and manage greedy or dynamic choices efficiently under strict numerical bounds. Access to the complete problem breakdown and optimal implementation requires a paid subscription.
Coding & Leetcode-style QuestionsPinduoduoMaximize Currency After Two Days of Conversions
3/5This Rippling interview question requires maximizing asset value across sequential conversion stages governed by multi-day exchange rates and bidirectional trade options. Candidates must devise a robust strategy to navigate state transformations and compound multiplicative gains over time. Unlock the complete problem context, mathematical modeling strategies, and optimal implementation by subscribing.
Coding & Leetcode-style QuestionsRipplingChecking Your Route (Edges on Any Shortest Path)
4/5Encountered in WeRide technical screens, this graph theory challenge asks you to analyze a network of nodes and weighted connections to identify which specific links belong to at least one shortest route from start to finish. It tests advanced graph traversal algorithms, shortest path computations, and edge analysis. The comprehensive problem statement, structural breakdown, and model solution are restricted to subscribers.
Coding & Leetcode-style QuestionsWeRideShortest Path in a Grid with Obstacle Removal
4/5In this advanced graph traversal challenge reported from Apple, you must find the optimal route between two points across a grid cluttered with barriers. The puzzle evaluates your proficiency with modified breadth-first search algorithms and tests your ability to adapt shortest-path logic when given the constrained capability to remove or bypass specific obstacles. Discover the full problem constraints, complexity analysis, and verified model solution by unlocking a paid subscription.
Coding & Leetcode-style QuestionsAppleMinimum-Cost Path on a Grid with Fuel and Recharge Cells
4/5Reported from ByteDance interviews, this advanced pathfinding challenge introduces resource management constraints to a standard grid traversal problem. Navigating from the start to the target incurs varying traversal costs while depleting a limited resource pool, which can only be replenished at designated recharge checkpoints and impassable obstacles must be avoided. The goal is to compute the most economical route under strict capacity limits. Review the complete problem statement, state-space modeling strategies, and optimal solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsByteDanceWord Ladder (Minimum Transformations)
4/5Explore this classic graph-traversal problem frequently featured in technical evaluations at Adobe. The exercise focuses on computing the shortest path between two text strings by modifying a single character at a time through a restricted lexicon. It tests your ability to model state spaces and apply breadth-first search techniques efficiently. Access to the comprehensive problem breakdown and optimal implementation requires a subscription.
Coding & Leetcode-style QuestionsAdobeWiki Page Shortest-Click Path
2/5In this Snowflake interview question, you are asked to determine the shortest navigation path between two web pages within an implicit graph where connections are only revealed through a provided lookup utility. The core challenge is to minimize expensive remote queries while traversing linked nodes and avoiding redundant checks through proper deduplication strategies. This tests your implementation of breadth-first search on dynamically discovered relationships. Review the full problem statement and study the comprehensive model solution by upgrading your subscription.
Coding & Leetcode-style QuestionsSnowflakeCheapest Flights Within K Stops
3/5This classic Uber interview problem challenges you to find the most economical travel route between two locations across a network of directed flight paths while respecting a strict limit on intermediate stops. You must navigate graph traversal constraints to determine the absolute lowest cost or identify if a valid journey is impossible under the given restrictions. Mastering this exercise sharpens your proficiency with advanced shortest-path algorithms and constrained graph exploration. To view the full problem statement and receive a detailed model solution, subscribe today.
Coding & Leetcode-style QuestionsUberRace Car: Minimum Instructions to Reach a Target
4/5This Waymo interview question, matching the standard race car challenge, asks you to determine the absolute minimum number of acceleration and reversal instructions needed for a vehicle to reach a specific target coordinate. You will need to model position and velocity transitions across a state space, carefully weighing choices to avoid overshooting the destination. Solving this puzzle demonstrates your expertise in advanced search algorithms and state-space optimization techniques. To see the full problem description and optimal model implementation, subscribe today.
Coding & Leetcode-style QuestionsWaymoGrid Shortest Path with K Obstacle Eliminations
3/5Navigate a constrained grid traversal challenge originating from ByteDance interviews that elevates classic pathfinding into a test of resource management. Starting at the corner of a matrix filled with passable terrain and barriers, you must find the shortest route to the destination while breaking through a limited number of obstacles. The puzzle examines your expertise in graph traversal algorithms like breadth-first search equipped with multi-dimensional state tracking. Discover the complete problem details and robust model implementation through a subscription.
Coding & Leetcode-style QuestionsByteDanceReachability with Flight Schedule Constraints
4/5This Google interview question tests your ability to navigate complex network graphs with temporal constraints. You will need to determine whether a valid journey between two locations is possible given a series of scheduled transit legs and strict transfer timing rules. The problem evaluates your proficiency in pathfinding algorithms and handling state-dependent transitions efficiently. To access the complete problem description, comprehensive analysis, and verified model solution, a paid subscription is required.
Coding & Leetcode-style QuestionsGoogleShortest Path in a Grid with Obstacles Elimination
4/5This Nuro interview challenge explores advanced graph traversal techniques, asking engineers to find the shortest path across a grid populated by impassable barriers. The catch is that the traversal agent possesses a limited ability to clear obstacles along the way, adding a layer of state management to standard pathfinding algorithms like breadth-first search. Candidates must efficiently track remaining clearances alongside spatial coordinates to avoid redundant states and locate the target destination. The complete problem statement and an optimal model solution are available exclusively with a paid subscription.
Coding & Leetcode-style QuestionsNuro
Studied alongside
shortest-path interview FAQ
- How many shortest-path interview questions are there?
- 22 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask shortest-path questions?
- Apple (2), Google (2), Uber (2), Snowflake (2), ByteDance (2), Databricks (1), Palantir (1), Atlassian (1).
- How hard are shortest-path questions?
- They average 3.4 out of 5: 1 at 2/5, 12 at 3/5, 9 at 4/5.