遍历树
wangfy_
这个作者很懒,什么都没留下…
展开
-
PATA 1079
Total Sales(所有零售商总共卖多少钱) of Supply Chain (25)A supply chain(供应链) is a network of :retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to cus...原创 2018-03-29 20:38:34 · 210 阅读 · 0 评论 -
PATA 1090
Highest Price in Supply Chain (25)A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting fr...原创 2018-03-29 20:39:48 · 194 阅读 · 0 评论 -
PATA 1094
The Largest Generation (25)A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation w...原创 2018-03-29 20:40:19 · 164 阅读 · 0 评论 -
PATA 1106
Lowest Price in Supply Chain (25)A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting fro...原创 2018-03-31 08:34:04 · 135 阅读 · 0 评论 -
ANOJ 180315 C
//https://logn.me/problem/1024//10 8//2 6 1 2 0 9 5 0 3 6//0 1//0 2//0 3//1 4//1 5//3 6//7 8//8 9//2//775 36#include <cstdio>#include <vector>using namespace std;const ...原创 2018-03-31 08:34:26 · 117 阅读 · 0 评论 -
题目中,树节点的表示方式有三
struct node { //动态(即指针)表示二叉树的树节点。重建二叉树问题为代表! node *l; node *r; int data;};struct node { //静态表示二叉树的树节点 int l; int r; int data;} Node[MAXN];struct node { //静态表示树的树节点 ve...原创 2018-04-24 14:51:19 · 551 阅读 · 0 评论 -
1004 Counting Leaves (30)
Counting Leaves(数叶子).A family hierarchy is usually presented by a pedigree tree.(家族谱系通常由系谱树来表示) Your job is to count those family members(成员) who have no child.InputEach input file contains one ...原创 2018-06-01 04:27:04 · 317 阅读 · 0 评论 -
1021 Deepest Root (25)
(待)原创 2018-06-27 22:34:45 · 429 阅读 · 1 评论