从点对中构建二叉树,并查找两个节点所对应的最小公共祖先
/*input:213 12 8 131 2 1 3 2 4 3 5 3 6 4 7 7 12 5 9 5 8 6 11 6 10 11 1310 9 2 101 2 1 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10*/#include#include#include#include#includeusing namespace std;int num
原创
2017-10-25 22:05:33 ·
319 阅读 ·
0 评论