r*****t 发帖数: 286 | 1 ☆─────────────────────────────────────☆
longtian (施主,小僧已经很久不烧香了) 于 (Thu May 10 14:18:07 2007) 提到:
发信人: longtian (施主,小僧已经很久不烧香了), 信区: JobHunting
标 题: 面试问题
发信站: BBS 未名空间站 (Thu May 10 14:02:59 2007), 转信
an array with n elements, find the largest and smallest element. What is
the fastest algorithm.
☆─────────────────────────────────────☆
mbasamlewis (mbasamlewis) 于 (Thu May 10 15:50:27 2007) 提到:
sorted or not sorted?
If sorted, bst
if not, sequential search with recursion
☆─────────────── |
|