程序员面试题精选100题(50)-树的子结构[数据结构] (4)

时间:2019-09-22 编辑:多美文

        return DoesTree1HaveAllNodesOfTree2(pTreeHead1->m_pLeft, pTreeHead2->m_pLeft) &&

                DoesTree1HaveAllNodesOfTree2(pTreeHead1->m_pRight, pTreeHead2->m_pRight);

}

本文已影响
相关文章