Introduction - If you have any usage issues, please Google them yourself
Joseph problem - typical application of circular list
N people form a circle. First, the first person counts clockwise from 1,
Report to the m person and order him to be listed. Then start from the next person and report clockwise from 1
To the m person, and then make it out And so on, find the order of the columns.
Solution: assume M = 3, n = 8 (1 23 4 5 6 7 8)
Results: 3 61 52 8 4 7