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

Function HasSubTree

DataStructure/BinaryTree/HasSubTree.js:9–21  ·  view source on GitHub ↗

* 输入两个二叉树,判断tree2是否为tree1的子结构。 * @param {TreeNode} tree1 * @param {TreeNode} tree2 * @return {boolean}

(tree1, tree2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

HasSubTreeHelperFunction · 0.70

Tested by

no test coverage detected