Azienda coinvolta
Write a code to construct a tree. It should get a string and generate related tree.
Anonimo
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; } }
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.