摘要: lower_bound( )和upper_bound( )都是利用二分查找的方法在一个排好序的数组中进行查找的。 在从小到大的排序数组中, lower_bound( begin,end,num):从数组的begin位置到end-1位置二分查找第一个大于或等于num的数字,找到返回该数字的地址,不存在 阅读全文
posted @ 2019-11-28 21:25 Maynerd 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://vjudge.net/problem/127221/origin A string is called palindrome if it reads the same from left to right and from right to left. For exampl 阅读全文
posted @ 2019-11-28 21:19 Maynerd 阅读(158) 评论(0) 推荐(0) 编辑