InterviewDB Question

Thrilling Teleporters: Find Minimum Jumps to Traverse a Graph with Teleport Edges

Question Details

Problem You have a graph with n nodes. Most edges cost 1 jump. Some edges are "teleporters" that cost 0 jumps (you are instantly transported). Find the minimum number of jumps to travel from node src to node dst. Example: Approach Use 0-1 BFS (deque)…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding