Google Interview Question for SDE1s
- 0of 0 votes
Two binary tree, to determine whether the two trees "similar", similar refers to the corresponding node in each tree in the left child and right child can be the same or in the opposite order, such as the following two trees, D, E where DE And DE can also be DE and ED, BC is the same, but the parent child relationship must be the same.
Followup is if left and right can be the same how to do,
- ajay.raj December 21, 2017 in United States
A / \ B C / \ D E A / \ C B / \ D E
| Report Duplicate | Flag | PURGE
Open Chat in New Window