Input : Root of below tree
1
/ \
2 3
\
2
Output : Yes
Explanation : The duplicate value is 2.
Input : Root of below tree
1
/ \
20 3
\
4
Output : No
Explanation : There are no duplicates.
Check If Binary Tree Has Duplicate Values
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||