会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
TQCAI
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
22
下一页
2018年1月28日
链表 | 递归删除不带头结点链表所有x元素
摘要: 王道P37 T1 : 设计一个递归算法,删除不带头结点的单链表L中所有值为x的结点。 王道上的答案绝对是错的,我自己想了一个 函数主体 调用方法: 完整代码: #include <stdlib.h> #include <cstdio> using namespace std; typedef str
阅读全文
posted @ 2018-01-28 23:33 TQCAI
阅读(995)
评论(0)
推荐(1)
2018年1月14日
A1016 | 磨人的大模拟
摘要: 这题写得头晕……明天我再评价 #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <
阅读全文
posted @ 2018-01-14 20:00 TQCAI
阅读(154)
评论(0)
推荐(0)
2018年1月11日
Ubuntu 下安装 Qt Designer
摘要: 1. apt-get install qt5-designer 2.终端下输入designer,显示: designer: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/designer': No such file or directory 3
阅读全文
posted @ 2018-01-11 13:53 TQCAI
阅读(1844)
评论(0)
推荐(0)
2018年1月7日
shell札记
摘要: 1.echo变量名的技巧 在这一行代码中,先输入a的值,是一个字符串。然后通过declare命令通过字符串“a”来定义ai的整数值,然后我们想把ai输出出来,可以直接用echo "ai=$ai"来完成。但是如果我们想在后面再输出一些字符串呢?可以用一个空格分隔,然后定义想要输出的字符串。然是如果我们
阅读全文
posted @ 2018-01-07 13:39 TQCAI
阅读(138)
评论(0)
推荐(0)
2018年1月3日
A1102 | 反转二叉树
摘要: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue> #include
阅读全文
posted @ 2018-01-03 21:38 TQCAI
阅读(261)
评论(0)
推荐(0)
2018年1月1日
顺序表 | 二分查找:两个数组合并后的中位数
摘要: 王道P18 T11 输入两个长度相同的升序数组,返回这两个数组合并后的中位数 C++代码: 完整代码: #include <cstdio> #include <memory.h> #include <cmath> #include <string> #include <vector> #includ
阅读全文
posted @ 2018-01-01 20:39 TQCAI
阅读(1208)
评论(0)
推荐(0)
A1113 | Integer Set Partition (25)
摘要: 太简单了
阅读全文
posted @ 2018-01-01 16:50 TQCAI
阅读(189)
评论(0)
推荐(0)
A1128 | 逻辑想象能力、简洁高效美观的代码、memset的使用情景
摘要: 写了三遍才AC,这真是对智商极大的侮辱 C++代码: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack
阅读全文
posted @ 2018-01-01 16:12 TQCAI
阅读(368)
评论(0)
推荐(0)
基础练习 | 阶乘
摘要: 花了一下午鼓捣了高精度加法函数。 一下代码中multi函数用string做容器,存在溢出的问题,可改为vector<int>或vector<long long>
阅读全文
posted @ 2018-01-01 15:02 TQCAI
阅读(159)
评论(0)
推荐(0)
2017年12月30日
A1130 | 中缀表达式、查找根节点
摘要: 代码: #include <stdio.h> #include <memory.h> #include <math.h> #include <string> #include <vector> #include <set> #include <stack> #include <queue> #inc
阅读全文
posted @ 2017-12-30 12:37 TQCAI
阅读(243)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
22
下一页
公告