← Amazon questions

Minimum light-years to travel between planets using solar systems and wormholes

Filed under Amazon

Find the minimum light-years to travel between two planets across N solar systems (each with M planets), where intra-system moves cost 1, moving to the next solar system's first planet costs 1, and…

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 Amazon questions

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