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

Function HasSubTree

DataStructure/BinaryTree/HasSubTree.ts:8–19  ·  view source on GitHub ↗

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

(tree1: TreeNode, tree2: TreeNode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

BinaryTree.test.jsFile · 0.90

Calls 1

HasSubTreeHelperFunction · 0.70

Tested by

no test coverage detected