2011年7月16日

摘要: Maximum Value ProblemLet’s start with a very classical problem. Given an array a[1…n] of positive numbers, if the value of each element in the array is distinct, how to find the maximum element in this array? You may write down the following pseudo code to solve this problem:function find_max(a[1…n. 阅读全文

posted @ 2011-07-16 12:05 continue_n 阅读(348) 评论(0) 推荐(1)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3