MCPcopy Create free account
hub / github.com/Reaper622/DataStructure-Algorithm-TS / isSymmetryTree

Function isSymmetryTree

DataStructure/BinaryTree/Symmetry.js:25–40  ·  view source on GitHub ↗

* 判断是否为对称二叉树 * 对称二叉树条件为: * - 两个根节点相等 * - 左子树的右节点和右子树的左节点相同 * - 右子树的左节点和左子树的右节点相同 * * @param {TreeNode} node1 * @param {TreeNode} node2

(node1, node2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

isSymmetryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected