由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - If using C++, please avoid the use of STL for these questio (转载)
相关主题
找高工资的IT工作咋这么难? (转载)
相关话题的讨论汇总
话题: stl话题: c++话题: questio话题: avoid话题: using
进入Programming版参与讨论
1 (共1页)
i***0
发帖数: 37
1
【 以下文字转载自 JobHunting 讨论区 】
发信人: iq300 (iq300), 信区: JobHunting
标 题: If using C++, please avoid the use of STL for these questions.
发信站: BBS 未名空间站 (Wed Mar 5 17:26:08 2008)
If using C++, please avoid the use of STL for these questions.
Array Rotation
You should be able to do this in less than linear time.
Implement the following function, FindSortedArrayRotation, which takes as
its input an array of unique integers that has been sorted in ascending
order, then rotated by an unknown amount X wher
s*******d
发帖数: 59
2
unique numbers, 这样通过两分法来找时,可以确定最小值在那一边。
相似的一个问题是找抛物线的顶点。
p***o
发帖数: 1252
3
嗯,其实这题用来考STL比现在这样不让用STL要难。

【在 s*******d 的大作中提到】
: unique numbers, 这样通过两分法来找时,可以确定最小值在那一边。
: 相似的一个问题是找抛物线的顶点。

1 (共1页)
进入Programming版参与讨论
相关主题
找高工资的IT工作咋这么难? (转载)
相关话题的讨论汇总
话题: stl话题: c++话题: questio话题: avoid话题: using