Skip to content

Commit afad38b

Browse files
authored
Fix mistake in docs A_CountEvenNumbers: correct example explanation, change input list to prevent same counter for even and odd numbers (#26)
1 parent 8146f34 commit afad38b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/github/streams/practice/a_easy_problems/numbers/A_CountEvenNumbers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
* <p>Example: <br>
1212
* Input = [1,2,3,4,5,6]<br>
1313
* Output = 3 <br>
14-
* Explanation: (1, 2, 3) are even numbers.
14+
* Explanation: (2, 4, 6) are even numbers.
1515
*/
1616
class A_CountEvenNumbers {
1717

1818
@Test
1919
@Disabled
2020
void countEvenNumbers() {
21-
final var input = List.of(1, 2, 3, 4, 5, 6, 7, 8);
21+
final var input = List.of(1, 2, 3, 4, 5, 6, 7);
2222

2323
final var mySolution = EasyNumbersProblemSolution.countNumberOfEvenNumbers(input);
2424
final var yourSolution = -1L; // WRITE YOUR IMPLEMENTATION HERE//

0 commit comments

Comments
 (0)