How to print out the order of removal in the Josephus problem in O(n)

前端 未结 0 1814
野趣味
野趣味 2021-01-29 10:34

Is there a way to print out the order of removal in the Josephus problem in O(n) ?

Example

With number of people is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题