Skip to content

Commit f28f40d

Browse files
author
Devansh K Shukla
committed
add for loop till string.length()
1 parent fb012e0 commit f28f40d

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.idea/workspace.xml

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/io/github/dbc/DuplicateCharactersCounter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public class DuplicateCharactersCounter {
1212
*/
1313
public Map<Character, Integer> countDuplicateCharacters(String string) {
1414
HashMap<Character, Integer> map = new HashMap<>();
15+
for (int i = 0; i < string.length(); i++) {
16+
17+
}
1518
return Map.of();
1619
}
1720
}

0 commit comments

Comments
 (0)