Amazon.com

  www.amazon.com
  www.amazon.com

Interview Question

Software Development Engineer I Intern Interview

Second Interview: Write a function that takes a binary

  search tree and returns an array with the in-order permutation of the tree.
Answer

Interview Answer

1 Answer

0

do an inorder traversal of the tree storing the values along the way into a pre-allocated array

Interview Candidate on May 30, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.