摘要: 代码: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue> #inc 阅读全文
posted @ 2018-02-07 22:03 TQCAI 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 实现源码:https://www.cnblogs.com/cobbliu/archive/2012/05/21/2512249.html 1.在一个递增的数组(或vector)中查找元素属于[ s , e ) 的下标 2.查找递增数组中元素是否存在 使用binary_search 注: 对于结构体, 阅读全文
posted @ 2018-02-07 20:16 TQCAI 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1.最长公共子序列 参考博客: http://blog.csdn.net/hrn1216/article/details/51534607 http://blog.csdn.net/u013074465/article/details/45392687 代码: #include <stdio.h> 阅读全文
posted @ 2018-02-07 18:03 TQCAI 阅读(217) 评论(0) 推荐(0) 编辑