LeetCode判断两个二叉树的值与结果是否相同(isSameTree)
题目描述
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
二叉树结构的定义:
s...
原创
2019-04-25 19:40:15 ·
271 阅读 ·
3 评论