Introduction - If you have any usage issues, please Google them yourself
Joseph problems with n solution of two individuals sitting around in a round-table, starting with the first s individuals started off, a few individuals out to the first m out, and then a column from the next person to start off, a few to the first m another person out ... so ... repeat until all of the people out so far. This procedure, respectively, with chain storage structure (circular list), and the order of the storage structure (array) to resolve the issue of Joseph, for beginners to identify both the similarities and differences between storage structure user input: n, s, m (comma separated) output : out out the order form
Packet : 9927445josephusproblem.rar filelist
约瑟夫问题\约瑟夫问题-数组.cpp
约瑟夫问题\约瑟夫问题-链表.cpp
约瑟夫问题