← Questions

Every ordering of N students in a line, then in a circle

0
AmazonCodingLast asked Apr 2026

Print every way N students can stand in a line. Follow-up: they stand in a circle instead, where rotations of the same arrangement count once.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding