Pergunta de entrevista da empresa Ancestry

Basic string question with sub questions. 1. Read a file and count the words. had given how the output should be. 2. Get longest word which had same first and last letter from the words which was read from file.

Resposta da entrevista

Sigiloso

8 de jun. de 2016

- used hash map to count the words. - When printing the words,calculated the longest word and stored in a variable.