Joseph Game
topic
In Joseph’s experiment, a total of n people form a round table, starting at position k, separated by m numbers, and when the count reaches m, the person at position m exits the round table and plays the game.
analysis
Mainly the realization of a single circular linked list without a head node, and the deletion of a node in the linked list
Code (source code click here)
The code is not shown here, and colleagues who want to see the source code can click the button above.