Uber Interview Question

Write a code to construct a tree. It should get a string and generate related tree.

Interview Answers

Anonymous

Feb 13, 2016

I was so embarrassed, and I can not find the best answer to coding questions.

Anonymous

Apr 11, 2016

Was this question asked for the onsite interview or phone interview?

Anonymous

Jun 25, 2016

deserialize the tree from string

Anonymous

Mar 2, 2016

This is prefix tree class Trie { char ch; Trie[] links; boolean isAWord; public Trie(char ch, boolean isAWord) { this.ch = ch; this.isAWord = isAWord; } }