Loading...
Engaged Employer
Write a code to construct a tree. It should get a string and generate related tree.
Anonymous
I was so embarrassed, and I can not find the best answer to coding questions.
Was this question asked for the onsite interview or phone interview?
deserialize the tree from string
This is prefix tree class Trie { char ch; Trie[] links; boolean isAWord; public Trie(char ch, boolean isAWord) { this.ch = ch; this.isAWord = isAWord; } }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.