由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - 问一个编程题
相关主题
标识符真的不能带空格么?CS master选课咨询
CS Algo Question算法学的很痛苦,求建议
who will go to algo 2005?有没有去 algo 2009 开会
Attending Algo 2005 and sharing double rooms计算机哪个方向越老越值钱?
How can we get financial supports or donations for a conference?ask a fortran question
排序算法计算量问题! (转载)NP
一道graph的问题求教!(from MIT Intro to Algo)贴一道take home的面试题
[合集] 读计算机两年博士毕业需不需要拖到三年?a quick question about integer programming
相关话题的讨论汇总
话题: he话题: 0r话题: selection话题: steps话题: me
进入CS版参与讨论
1 (共1页)
r********t
发帖数: 395
1
在这个网页里:http://www.careercup.com/question?id=266699
He gave me an array of Integers, each integer allows me to make at max its
value jumps. If i am at zero, i'm stuck i cannot move forword. He asked me
to find the least selection to reach end of the array.
ex: 1 3 5 8 9 2 6 7 6 8 9
initially at one i have only make one jump to 3, from 3 i can jump either 1
step 0r 2 steps 0r 3 steps.
my solution is 1 to 3 to 8, 3 selection and i am done.
Device an algo for this
有一个答案用到动态规划:
It's a dynamic program
1 (共1页)
进入CS版参与讨论
相关主题
a quick question about integer programmingHow can we get financial supports or donations for a conference?
Count the number of ON bits in an integer.排序算法计算量问题! (转载)
请教几个算法题, 第一个一道graph的问题求教!(from MIT Intro to Algo)
紧急求助!Stochastic Integer Programming (转载)[合集] 读计算机两年博士毕业需不需要拖到三年?
标识符真的不能带空格么?CS master选课咨询
CS Algo Question算法学的很痛苦,求建议
who will go to algo 2005?有没有去 algo 2009 开会
Attending Algo 2005 and sharing double rooms计算机哪个方向越老越值钱?
相关话题的讨论汇总
话题: he话题: 0r话题: selection话题: steps话题: me