+ 1

Count of Strings repeated in the given array.

Given an array, return a Map<String,Integer> with a key as String in an array and value as the number of times String is there in an array. String[“a”,”c”,”a”,”d”]—> Map{a:2,c:1,d:1}

31st Oct 2017, 12:37 PM
Mohan Palekar
Mohan Palekar - avatar
1 Resposta
31st Oct 2017, 12:58 PM
yuri