Skip to main content

Path reconstruction · 5 minutes

Handle a trip with zero edges

Get feedback on your answer. No account needed.

Your function returns a list of stops, including both endpoints, or None if no route exists. What should route("Gate", "Gate") return when Gate exists?

Your answer
Need a small hint?

A traveler who stays put visits one stop.

This helps us choose when to schedule your next review.