Introduction - If you have any usage issues, please Google them yourself
Achieved with cyclic single-linked list: N individuals sitting around a circle, were marked with numbers 1 to N. No. 1 position from sitting in order, starting with the person passing the potatoes. M after the second pass, to get potatoes were excluded, the circles shrink, and then leave the round table behind the man who started to continue the game. The game has been carried out until the last person left for the winner. Therefore, if M = 0 and N = 5, all the people in turn are excluded, 5, the final victory. If M = 1 and N = 5, excluding the order 2,4,1,5.