josephus

2008-1-28 8:9
Algorithm Description: There are N people, numbered from 1 to N, sitting in a circle. People count off, and the person who reports the number M is eliminated. ......