Is this correct solution for Josephus problem if we travel anti-clockwise?

前端 未结 0 387
眼角桃花
眼角桃花 2020-12-06 18:50

My possible solutions:

  1. Reverse the list/stack, traverse clockwise (probably not the solution the interviewer is looking for)
  2. Remove the nodes from the
相关标签:
回答
  • 消灭零回复
提交回复
热议问题