Skip to content

Commit b84ea23

Browse files
committed
fix: markdown according to the rules
1 parent a0ca392 commit b84ea23

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
<!-- Your content goes here: -->
44

5-
6-
75
<!-- DO NOT EDIT BELOW THIS LINE! -->
86
---
97

exercises/practice/parallel-letter-frequency/.approaches/fork-join/content.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `Fork/Join`
1+
# `Fork/Join`
22

33
```java
44
import java.util.Map;
@@ -11,7 +11,7 @@ import java.util.concurrent.RecursiveTask;
1111
class ParallelLetterFrequency {
1212

1313
List<String> texts;
14-
ConcurrentMap<Character, Integer> letterCount;
14+
ConcurrentMap<Character, Integer> letterCount;
1515

1616
ParallelLetterFrequency(String[] texts) {
1717
this.texts = List.of(texts);
@@ -82,8 +82,6 @@ Additionally, since uppercase and lowercase letters are treated as the same char
8282

8383
After updating letter frequencies, the final map is returned.
8484

85-
86-
8785
[ConcurrentHashMap]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentHashMap.html
8886
[ForkJoinPool]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ForkJoinPool.html
8987
[isAlphabetic]: https://docs.oracle.com/javase/8/docs/api/java/lang/Character.html#isAlphabetic-int-

exercises/practice/parallel-letter-frequency/.approaches/introduction.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ However, parallelStream() uses the common ForkJoinPool by default, meaning multi
1717

1818
Although this doesn’t directly impact solving the Parallel Letter Frequency problem, it may introduce issues when thread pool sharing causes conflicts in other applications. Therefore, a custom ForkJoinPool approach is also provided below.
1919

20-
21-
## Approach: `parallelStream`
20+
## Approach: `parallelStream`
2221

2322
```java
2423
import java.util.Map;

exercises/practice/parallel-letter-frequency/.approaches/parallel-stream/content.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `parallelStream`
1+
# `parallelStream`
22

33
```java
44
import java.util.Map;
@@ -43,7 +43,5 @@ Since we treat uppercase and lowercase letters as the same character (e.g., A an
4343

4444
After updating letter frequencies, the final map is returned.
4545

46-
47-
4846
[ConcurrentHashMap]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentHashMap.html
4947
[isAlphabetic]: https://docs.oracle.com/javase/8/docs/api/java/lang/Character.html#isAlphabetic-int-

0 commit comments

Comments
 (0)