会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
景云
博客园
首页
管理
上一页
1
2
3
4
5
6
···
28
下一页
2020年9月1日
Acwing-----算法基础课之第二讲(数据结构二)
摘要: 835 Trie字符串统计 链接:https://www.acwing.com/problem/content/837/ #include <iostream> using namespace std; const int N = 100010; int n; int son[N][26], cnt
阅读全文
posted @ 2020-09-01 21:20 景云ⁿ
阅读(224)
评论(0)
推荐(0)
2020年8月19日
Acwing-----算法基础课之第二讲(数据结构一)
摘要: 826. 单链表 链接:https://www.acwing.com/problem/content/828/ 使用数组模拟链表,速度比较快;邻接表,一般用来存储树和图; #include <iostream> using namespace std; const int N = 100010; /
阅读全文
posted @ 2020-08-19 14:15 景云ⁿ
阅读(285)
评论(0)
推荐(0)
2020年8月8日
leetcode-----148. 排序链表
摘要: 链接:https://leetcode-cn.com/problems/sort-list/ 代码 /* * @lc app=leetcode.cn id=148 lang=cpp * * [148] 排序链表 * 归并排序:自底向上非递归 */ // @lc code=start /** * De
阅读全文
posted @ 2020-08-08 14:29 景云ⁿ
阅读(81)
评论(0)
推荐(0)
leetcode-----147. 对链表进行插入排序
摘要: 链接:https://leetcode-cn.com/problems/insertion-sort-list/ 代码 /* * @lc app=leetcode.cn id=147 lang=cpp * * [147] 对链表进行插入排序 */ // @lc code=start /** * De
阅读全文
posted @ 2020-08-08 14:01 景云ⁿ
阅读(71)
评论(0)
推荐(0)
leetcode-----146. LRU缓存机制
摘要: 链接:https://leetcode-cn.com/problems/lru-cache/ 代码 /* * @lc app=leetcode.cn id=146 lang=cpp * * [146] LRU缓存机制 */ // @lc code=start class LRUCache { pub
阅读全文
posted @ 2020-08-08 13:50 景云ⁿ
阅读(89)
评论(0)
推荐(0)
2020年8月4日
leetcode-----145. 二叉树的后序遍历
摘要: 链接:https://leetcode-cn.com/problems/binary-tree-postorder-traversal/ 代码 /* * @lc app=leetcode.cn id=145 lang=cpp * * [145] 二叉树的后序遍历 */ // @lc code=sta
阅读全文
posted @ 2020-08-04 17:35 景云ⁿ
阅读(56)
评论(0)
推荐(0)
leetcode-----144. 二叉树的前序遍历
摘要: 链接:https://leetcode-cn.com/problems/binary-tree-preorder-traversal/ 代码 /* * @lc app=leetcode.cn id=144 lang=cpp * * [144] 二叉树的前序遍历 */ // @lc code=star
阅读全文
posted @ 2020-08-04 17:26 景云ⁿ
阅读(63)
评论(0)
推荐(0)
leetcode-----143. 重排链表
摘要: 链接:https://leetcode-cn.com/problems/reorder-list/ 代码 /* * @lc app=leetcode.cn id=143 lang=cpp * * [143] 重排链表 */ // @lc code=start /** * Definition for
阅读全文
posted @ 2020-08-04 17:18 景云ⁿ
阅读(72)
评论(0)
推荐(0)
leetcode-----142. 环形链表 II
摘要: 链接:https://leetcode-cn.com/problems/linked-list-cycle-ii/ 代码 /* * @lc app=leetcode.cn id=142 lang=cpp * * [142] 环形链表 II */ // @lc code=start /** * Def
阅读全文
posted @ 2020-08-04 10:02 景云ⁿ
阅读(61)
评论(0)
推荐(0)
leetcode-----141. 环形链表
摘要: 链接:https://leetcode-cn.com/problems/linked-list-cycle/ 代码 /* * @lc app=leetcode.cn id=141 lang=cpp * * [141] 环形链表 */ // @lc code=start /** * Definitio
阅读全文
posted @ 2020-08-04 09:47 景云ⁿ
阅读(50)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
28
下一页
公告