由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - [合集] 小题目(2006/07/16)--圆圈上顺时---recursive solution
相关主题
[合集] 青蛙跳问题再说几个不成功的面经吧
fibonacci recursion[合集] interview question 2
[合集] 面试问题 (转载)A statistics question
[合集] 一道面试c程序题a probability question
青蛙跳问题谁讲讲representation theorem
有没有熟悉change numeraire的?关于利率model,What is the solution of the recursive formula?
Solve this task using recursion. how to ?大家一般leetcode上做了多少题后,才
[合集] 两个面试题(probability)小题目(2006/07/30)
相关话题的讨论汇总
话题: 圆圈话题: 拿走话题: solution话题: 小题目话题: 顺时
进入Quant版参与讨论
1 (共1页)
B*********h
发帖数: 800
1
☆─────────────────────────────────────☆
newnewlife (newlife) 于 (Fri Jan 19 16:55:23 2007) 提到:
圆圈上顺时针排列着1,2,3,....2000 这
2000个数. 从1开始,顺时针隔一个拿走一个(1最先被拿走,下一个是3被拿走).
问最后剩下是哪一个数字.
this is a question from 精华区 and already have a solution.
here i just want to sovle it using recursion.
the recursion formula is:
f(2n) = 2f(n); since if it is even then the odds are eliminated first and
start with the game starting with the first even number again.
f(2n+1)=2*{ [f(n)+1]%n}; after first round the game st
1 (共1页)
进入Quant版参与讨论
相关主题
小题目(2006/07/30)青蛙跳问题
小题目有没有熟悉change numeraire的?关于利率model,
[合集] 小题目(2006/07/30)Solve this task using recursion. how to ?
[合集] 贡献一个小题目[合集] 两个面试题(probability)
[合集] 青蛙跳问题再说几个不成功的面经吧
fibonacci recursion[合集] interview question 2
[合集] 面试问题 (转载)A statistics question
[合集] 一道面试c程序题a probability question
相关话题的讨论汇总
话题: 圆圈话题: 拿走话题: solution话题: 小题目话题: 顺时