Microsoft

  www.microsoft.com
Work in HR? Unlock Free Profile

Microsoft Software Development Engineer II Interview Question

I interviewed in Redmond, WA and was asked:
"Write a method to traverse a Binary Tree"
Add Tags [?]
Answer

Part of a Software Development Engineer II Interview Review - one of 3,360 Microsoft Interview Reviews

Answers & Comments

0
of 0
votes
recursive:
fun traverse(t)
  print t
  if (t is leaf)
  else
      traverse(t.left)
      traverse(t.right)
- Javier on Aug 6, 2010

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.