employer cover photo
employer logo
employer logo

Simplilearn Solutions

Questa è la tua azienda?

Domanda di colloquio di Simplilearn Solutions

1. Count the duplicate words in a string

Risposta di colloquio

Anonimo

19 mag 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.