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

Function isSymmetry

DataStructure/BinaryTree/Symmetry.ts:12–14  ·  view source on GitHub ↗

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

(tree: Tree<Number>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

isSymmetryTreeFunction · 0.70

Tested by

no test coverage detected