随笔分类 -  查找-二分

摘要: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. 阅读全文
posted @ 2018-09-08 11:38 真想不出名字了 阅读(338) 评论(0) 推荐(0)
摘要:①基础二分查找 ②lower_bound函数与upper_bound函数 (1) 在使用这两个函数前,必须保证该数组是非递减序列。 (2) lower_bound(begin,end,num): 从数组的begin位置到end-1位置二分查找第一个≥num的元素,找到则返回该元素的地址,不存在则返回 阅读全文
posted @ 2018-06-14 10:07 真想不出名字了 阅读(184) 评论(0) 推荐(1)
摘要:描述 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 阅读全文
posted @ 2018-05-05 19:15 真想不出名字了 阅读(332) 评论(0) 推荐(0)