Uber interview question

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

Interview Answers

Anonymous

13 Feb 2016

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

Anonymous

11 Apr 2016

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

Anonymous

25 Jun 2016

deserialize the tree from string

Anonymous

2 Mar 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; } }