会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
TQCAI
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页
2018年2月9日
动态规划-区间DP
摘要: 1.尼克的任务 #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue>
阅读全文
posted @ 2018-02-09 10:42 TQCAI
阅读(219)
评论(0)
推荐(0)
2018年2月8日
动态规划-石子问题
摘要: 1.直线取石子 #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue>
阅读全文
posted @ 2018-02-08 14:11 TQCAI
阅读(612)
评论(0)
推荐(0)
2018年2月7日
动态规划-最长不下降子序列
摘要: 代码: #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
阅读(291)
评论(0)
推荐(0)
STL 二分查找
摘要: 实现源码: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
阅读(289)
评论(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
阅读(225)
评论(0)
推荐(0)
2018年2月5日
动态规划-背包问题
摘要: 1.P1060 开心的金明 https://www.luogu.org/problemnew/solution/P1164 #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vec
阅读全文
posted @ 2018-02-05 21:16 TQCAI
阅读(206)
评论(0)
推荐(0)
2018年2月3日
高精度运算模板学习
摘要: 公共部分 定义了高精度数据结构“hp”,并且定义了输入(构造函数),输出(print),以及初始化(默认构造函数),隐藏了部分细节。 并且hp内部存储的数据是真实数据的逆序,但是在输入和输出的时候自动换序 高精度乘高精度 代码: 代码理解: 这是一段相当精简的代码,非常有利于程序员记忆。我昨天还在学
阅读全文
posted @ 2018-02-03 21:26 TQCAI
阅读(707)
评论(0)
推荐(0)
2018年2月2日
二叉树 | 根据前序、后序生成中序
摘要: OJ链接:https://www.patest.cn/contests/pat-a-practise/1119 我的分析过程:pat1119分析.pdf 参考博客:https://www.cnblogs.com/xiongmao-cpp/p/6498672.html 实现代码: 完整代码: #inc
阅读全文
posted @ 2018-02-02 12:28 TQCAI
阅读(332)
评论(0)
推荐(0)
2018年2月1日
二叉树 | 根据前序、中序生成后序,根据后序、中序生成前序
摘要: 使用的全局变量: 根据前序、中序生成后序: 根据后序、中序生成前序: 完整代码: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #
阅读全文
posted @ 2018-02-01 21:24 TQCAI
阅读(333)
评论(0)
推荐(0)
2018年1月30日
链表 | 原地逆置链表
摘要: 王道P37 T5 所谓原地逆置,就是空间复杂度为O(1)的将链表反转。 实现函数: 完整代码: #include <cstdio> #include <stdlib.h> using namespace std; typedef struct LinkList{ int data; struct L
阅读全文
posted @ 2018-01-30 23:27 TQCAI
阅读(506)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页
公告