How to generalized formula to move x steps in a circle?

前端 未结 0 826
感动是毒
感动是毒 2021-01-01 12:19

As we know if we have an array of size n, let\'s say a0, a1, a2, ......, an-1. we can preform x move clockwise with ((ai + x) % n) and anti

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