Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

刘老师您好,关于训练指南例题26的一点小疑问 #34

Open
GoogleCodeExporter opened this issue May 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link


例题26 约瑟夫问题的变形
约瑟夫原版问题答案为:f(n)=(f(n-1)+k)%n
该变形问题答案为:(m-k+1+f(n))%n
请问m-k+1是为什么呢?怎么变的?
谢谢!

Original issue reported on code.google.com by ysq.sinc...@gmail.com on 14 Feb 2014 at 6:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant