您的位置:首页 > 其它

Cracking The Coding Interview 4.7_暂存

2014-04-17 15:06 274 查看
//原文:
//
// You have two very large binary trees: T1, with millions of nodes, and T2, with hundreds of nodes. Create an algorithm to decide if T2 is a subtree of T1
//
// 译文:
//
// 有两棵很大的二叉树:T1有上百万个结点,T2有上百个结点。写程序判断T2是否为T1的子树。

除了暴力法,没想到更好的。。暂时放这
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: