Joseph ring - known to n - (numbered 1, 2, 3... n, respectively) sitting around a round table. Number of people began to count off, from Numbers for 1 to 3 out the man; His next start from 1 number off, the man count to three
and break the ranks; In accordance with the law repeatedly, until the round out all the people around you.
Can use the list to solve the problem:
1. Manner to establish a chain of n nodes, the headless circular linked list of nodes;
2. Determine the position of th......
阅读全文