Amazon.com

  www.amazon.com
  www.amazon.com

Interview Question

Software Development Intern Interview Houston, TX

The question in which i need to find whether two given

  binary trees are identical are not.
Answer

Interview Answer

1 Answer

0

Use Floyd's turtle and Hare method to find the loop, use DFS to find if the trees are similar or not.

Nuruddin on Jan 23, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.