Skip to content

Commit f4eb064

Browse files
author
Sanjana Poptani
committed
MapReduce.java'
1 parent a163816 commit f4eb064

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/thealgorithms/misc/MapReduce.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static String mapreduce(String sentence) {
3232
wordCounts.forEach((word, count) -> result.append(word).append(": ").append(count).append(","));
3333

3434
// Removing the last ',' if it exists
35+
// sanjana done something
3536
if (!result.isEmpty()) {
3637
result.setLength(result.length() - 1);
3738
}

0 commit comments

Comments
 (0)