We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 483b2cd commit b6e2c5cCopy full SHA for b6e2c5c
Algorithm/Interview-62.md
@@ -1,5 +1,5 @@
1
2
-## Inverview-62:队列的最大值
+## Inverview-62:圆圈中最后剩下的数字
3
4
**题目**:0,1,,n-1 这 n 个数字排成一个圆圈,从数字 0 开始,每次从这个圆圈里删除第 m 个数字。求出这个圆圈里剩下的最后一个数字。例如,0、1、2、3、4 这 5 个数字组成一个圆圈,从数字 0 开始每次删除第 3 个数字,则删除的前 4 个数字依次是 2、0、4、1,因此最后剩下的数字是 3。
5
0 commit comments