阅读背景:

【IT笔试面试题整理】判断一个树是否是另一个的子树

来源:互联网 

【试题描述】定义一个函数,输入判断一个树是否是另一个对的子树

You have two very large binary trees: T1, with millions of nodes, and T2, with hun-dreds of nodes Create an algorithm to decide if T2 is a subtree of T1You have two v




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: