10000 update · CodeSharer/Java-Coding-Problems@08ff86a · GitHub
[go: up one dir, main page]

Skip to content

Commit 08ff86a

Browse files
committed
update
1 parent 829b8f1 commit 08ff86a

File tree

1 file changed

+1
-1
8000 lines changed
  • Chapter_01/P01_CountDuplicateCharacters/src/modern/challenge

1 file changed

+1
-1
lines changed

Chapter_01/P01_CountDuplicateCharacters/src/modern/challenge/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void main(String[] args) {
4646
System.out.println("HashMap based solution:");
4747
long startTimeV3 = System.nanoTime();
4848

49-
Map<String, Long> duplicatesV3 = Strings.countDuplicateCharactersVCP1(TEXT_CP);
49+
Map<String, Integer> duplicatesV3 = Strings.countDuplicateCharactersVCP1(TEXT_CP);
5050

5151
displayExecutionTime(System.nanoTime()-startTimeV3);
5252
System.out.println(Arrays.toString(duplicatesV3.entrySet().toArray()));

0 commit comments

Comments
 (0)
0