โ† Amazon questions

Number of ways to travel cities

Filed under Amazon

Given a list of N cities that can be traveled in any order, find the total number of ways in which you can visit all these cities (permutations).

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.