Leetcode - 617. Merge Two Binary Trees
此篇文章為我的解題紀錄,程式碼或許並不是很完善
Leetcode - 617. Merge Two Binary Trees
解題思路
使用recusive來將每個子節點相加到第一個樹,若是第一個樹在該位置無節點則創建新的點
我滴程式碼
1 | /** |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkFacebook Comments