Description: N monkeys to elect king, all the monkeys reported by a number 1,2,3 ... M, where M to report the withdrawal of outsiders, and so on, until only one circle is the king of. Analysis: the establishment of a ring linked list, each monkey is a list of a node, then the monkey out of the circle is a right circular list node removal, only to the last remaining until a node.
To Search:
- [cyuanyan] - Between 101-200 to determine the number
File list (Check if you may need any files):
A0_001.PAS