Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 350 Bytes

File metadata and controls

11 lines (6 loc) · 350 Bytes

139.Find Duplicate Subtrees

Description

Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them.

Two trees are duplicate if they have the same structure with same node values.

From

LeetCode