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

0
Remix

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.

AmazonTechnical phone screenLast asked Apr 2026
No answer yet. Write the first one; the best answer gets endorsed.