EMC Interview Question: What is the difference betwee... | Glassdoor

Interview Question

Software Engineer Interview(Student Candidate)

What is the difference between C++ and Java? coding

  problem: give you a book(file) how can you find out the most frequency word inside this book.

Interview Answer

2 Answers


Regarding the "coding problem":
Traverse the file's words 1 by 1 & insert them into a prefixes tree such that each time you insert an "existing" word - you increment its counter by 1.
Keep track of the max counter each time you increment...

Moran Levy on Oct 11, 2016

use trie

Anonymous on Dec 24, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.