Delete comment from: Java67
Nitesh Shrivastava said...
I will use map.put(c[i], map.getOrDefault(c[i], 1) + 1);
to avoid else condition
Apr 17, 2017, 8:13:46 AM
Posted to How to Find Duplicate Characters in String [Java Coding Problems]
I will use map.put(c[i], map.getOrDefault(c[i], 1) + 1);
to avoid else condition
Apr 17, 2017, 8:13:46 AM
Posted to How to Find Duplicate Characters in String [Java Coding Problems]