數據結構與算法題目集7-3——樹的同構

我的數據結構與算法題目集代碼倉:https://github.com/617076674/Data-structure-and-algorithm-topic-set 原題鏈接:https://pintia.cn/problem-sets/15/problems/711 題目描述: 知識點:遞歸 思路:遞歸判斷兩棵樹是否同構 遞歸終止條件: (1)當head1 == -1 且head2 == -1
相關文章
相關標籤/搜索