随笔分类 - 查找-二分
摘要:Sheila is a student and she drives a typical student car: it is old, slow, rusty, and falling apart. Recently, the needle on the speedometer fell off.
阅读全文
摘要:①基础二分查找 ②lower_bound函数与upper_bound函数 (1) 在使用这两个函数前,必须保证该数组是非递减序列。 (2) lower_bound(begin,end,num): 从数组的begin位置到end-1位置二分查找第一个≥num的元素,找到则返回该元素的地址,不存在则返回
阅读全文
摘要:描述 Jack and Jill have decided to sell some of their Compact Discs, while they still have some value. They have decided to sell one of each of the CD t
阅读全文

浙公网安备 33010602011771号