Skip to content

Commit ec5a208

Browse files
committed
Markdown Documentation Comments
1 parent 84fa6b2 commit ec5a208

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

src/test/java/com/github/streams/interview/problems/numbers/B_GroupingOfNumbersTest.java

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,26 @@
88
import org.junit.jupiter.api.Disabled;
99
import org.junit.jupiter.api.Test;
1010

11-
/*
12-
*
13-
Q12) Given an array of integers (2,34,54,23,33,20,59,11,19,37 )
14-
* Group the numbers by the range they belong to.
15-
* Output should be {0=[2], 50=[54,59], 20=[23,20], 10=[11,19], 30=[34,33,37]}
16-
*
17-
*/
11+
/// ### Given an array of integers, group the numbers by the range they belong to.
12+
///
13+
/// Each number is grouped into a range starting with the largest multiple of 10 less than or equal
14+
// to the number.
15+
///
16+
/// ### Input:
17+
/// ```
18+
/// [2, 34, 54, 23, 33, 20, 59, 11, 19, 37]
19+
/// ```
20+
///
21+
/// ### Output:
22+
/// ```
23+
/// {
24+
/// 0=[2],
25+
/// 50=[54, 59],
26+
/// 20=[23, 20],
27+
/// 10=[11, 19],
28+
/// 30=[34, 33, 37]
29+
/// }
30+
/// ```
1831
class B_GroupingOfNumbersTest {
1932
@Test
2033
@Disabled

0 commit comments

Comments
 (0)