Interview Question

Anonymous Interview Houston, TX

The question in which i need to find whether two given

  binary trees are identical are not.

Interview Answer

1 Answer


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 question, Sign In with Facebook or Sign Up