Pergunta de entrevista da empresa Simplilearn Solutions

1. Count the duplicate words in a string

Resposta da entrevista

Sigiloso

19 de mai. de 2021

I have solved it using the map. By splitting the string into the array and checking if the word already exists in the map or not.