Skip to content

Commit 20ea6eb

Browse files
committed
add the starter code
1 parent ec03bc8 commit 20ea6eb

File tree

2 files changed

+59
-4
lines changed

2 files changed

+59
-4
lines changed

.idea/workspace.xml

Lines changed: 44 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package io.github.dbc;
2+
3+
import java.util.Map;
4+
5+
public class DuplicateCharactersCounter {
6+
/**
7+
* Counts the number of duplicate characters in a string.
8+
*
9+
* @param string String to count duplicate characters.
10+
* @return Map with characters and their count.
11+
*/
12+
public Map<Character, Integer> countDuplicateCharacters(String string) {
13+
return Map.of();
14+
}
15+
}

0 commit comments

Comments
 (0)