Skip to content
RED SAG Skills
medium10 pts · first answer countsstacks-and-queues

Josephus problem with a queue

Seven people, numbered 1 to 7, stand in a circle. Counting from person 1, every 3rd person is removed until one remains. Using a queue to simulate this, who survives?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions