热心市民小喷
热心市民小喷
全部文章
分类
BFS(2)
DFS(2)
pat乙级(69)
pat甲级(16)
栈,队列(1)
浙工大(3)
问题小技巧(2)
随笔(8)
题解(2)
归档
标签
去牛客网
登录
/
注册
谁人打的太极
TA的专栏
99篇文章
2人订阅
代码学习笔记
99篇文章
1874人学习
全部文章
(共8篇)
PAT甲级1094
来自专栏
1094 The Largest Generation (25分) A family hierarchy is usually presented by a pedigree tree where all the nodes on ...
DFS
树的层数相关题
2020-05-03
0
606
PAT甲级同类型题 1090 1079 1106
来自专栏
1090 Highest Price in Supply Chain (25分) A supply chain is a network of retailers(零售商), distributors(经销商), and suppl...
DFS
树的层数相关题
2020-05-03
0
754
PAT甲级1004
来自专栏
1004 Counting Leaves (30分) A family hierarchy is usually presented by a pedigree tree. Your job is to count those fa...
DFS
BFS
2020-05-02
0
664
PAT甲级1086(算法笔记8.1DFS)
来自专栏
1086 Tree Traversals Again (25分) An inorder binary tree traversal can be implemented in a non-recursive way with a s...
DFS
树的遍历
2020-04-29
1
655
PAT甲级1103(算法笔记上机8.1DFS)
来自专栏
1103 Integer Factorization (30分) The K−P factorization of a positive integer N is to write ...
DFS
2020-04-29
1
931
PAT甲级1053(算法笔记9.3)
来自专栏
1053 Path of Equal Weight (30分) Given a non-empty tree with root R, and with weight Wi assigned to each tree n...
DFS
树的遍历
2020-04-28
1
636
算法笔记8.1.2
来自专栏
#include<iostream>//n个数中取K个数,要求k个数的和=x,如果有多种方案,取方案中,每个数平方后的和的最大的那个方案 #include<vector> using namespace std; #define maxn&nbs...
DFS
2020-04-27
0
532
算法笔记8.1.1
来自专栏
#include<iostream>//n个物品,各有价格和体积,背包容量V,求装满背包的最大价值装法 using namespace std; #define maxn 30 int a[maxn],b[maxn]; int ...
DFS
2020-04-27
0
534