上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 108 下一页

2022年4月23日

摘要: 地址 https://leetcode-cn.com/problems/diameter-of-binary-tree/ 给定一棵二叉树,你需要计算它的直径长度。一棵二叉树的直径长度是任意两个结点路径长度中的最大值。这条路径可能穿过也可能不穿过根结点。 示例 : 给定二叉树 1 / \ 2 3 / 阅读全文
posted @ 2022-04-23 12:13 itdef 阅读(40) 评论(0) 推荐(0) 编辑

2022年3月6日

摘要: 地址 https://algospot.com/judge/problem/read/ASYMTILING #include <iostream> using namespace std; const int N = 150; const int MOD = 1e9 + 7; int dp[N]; 阅读全文
posted @ 2022-03-06 19:04 itdef 阅读(34) 评论(0) 推荐(0) 编辑

2022年3月5日

摘要: 地址 https://algospot.com/judge/problem/read/FESTIVAL 暴力优化即可. 尝试从l开始到N的各种长度。再暴力遍历各种长度下不同起点的连续天数的租金的平均值。 使用前缀和进行暴力的优化,不必每次都重复计算连续天数的租金总和。 #include <iostr 阅读全文
posted @ 2022-03-05 20:48 itdef 阅读(44) 评论(0) 推荐(0) 编辑

2022年2月28日

摘要: 挑战编程 uva100 3n+1 模拟 挑战编程 uva 10189 扫雷 模拟 uva 10196 将军 模拟 目录 第一章:入门 PC/UVa 题号: 110101/100 The 3n+1 problem (3n+1 问题) PC/UVa 题号: 110102/10189 Minesweepe 阅读全文
posted @ 2022-02-28 17:54 itdef 阅读(107) 评论(0) 推荐(0) 编辑

2022年2月20日

摘要: PAT 甲级 1001 A+B Format PAT 甲级 1002 A+B for Polynomials PAT 甲级 1003 Emergency DFS PAT 甲级 1004 Counting Leaves PAT 甲级 1005 Spell It Right 模拟 字符串 PAT 甲级 阅读全文
posted @ 2022-02-20 12:15 itdef 阅读(88) 评论(0) 推荐(0) 编辑
摘要: ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); #ifdef local_debug freopen("words.in", "r", stdin); freopen("out.txt", "w", stdout);#endif 《算法竞赛 阅读全文
posted @ 2022-02-20 12:14 itdef 阅读(369) 评论(2) 推荐(1) 编辑
摘要: 入门篇 第2章 算法入门 STL应用 vector HDU 3527 STL应用 map HDU 3527 STL应用 queue poj 1915 STL应用 set hdu 1412 STL应用 map poj 2418 STL应用 map HDU 1263 STL应用 stack 计蒜客 T1 阅读全文
posted @ 2022-02-20 12:13 itdef 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 练习专题 kaungbin oj专题 算法训练营 入门篇 题库 https://vjudge.net/article/2652 进阶篇 题库 https://vjudge.net/article/2642 挑战程序设计竞赛(第二版)题集 https://vjudge.net/article/46 其 阅读全文
posted @ 2022-02-20 12:08 itdef 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 算法问题实战策略 题解 书籍配套的韩国OJ 地址比较慢 https://algospot.com/judge/problem/list/ 不知道是韩国体面风格有趣,还是翻译者的用词比较贴切, 题面阅读起来没有一般题目的晦涩感,容易理解,难度也循序渐进. 解释题面和思路也非常详细,个人认为书籍和题目十 阅读全文
posted @ 2022-02-20 11:07 itdef 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 英文题面的题解 ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); #ifdef local_debug freopen("words.in", "r", stdin); freopen("out.txt", "w", stdout);#end 阅读全文
posted @ 2022-02-20 11:01 itdef 阅读(439) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 108 下一页

导航