Skip to content

Commit b1a365f

Browse files
committed
Markdown Documentation Comments
1 parent d2cd293 commit b1a365f

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

src/test/java/com/github/streams/interview/problems/employee/A_MinSalaryInEachDept.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
1010
/// #### Given a list of employees, find the minimum salary in each department.
1111
///
1212
/// ### Input:
13+
/// ```json
1314
/// - Employee(department="Sales", salary=5000)
1415
/// - Employee(department="Sales", salary=6000)
1516
/// - Employee(department="Marketing", salary=4000)
1617
/// - Employee(department="Marketing", salary=7000)
17-
///
18+
/// ```
1819
/// ### Output:
19-
///
20-
/// - Sales=5000, Marketing=4000
20+
/// ```json
21+
/// - Sales=5000
22+
/// - Marketing=4000
23+
/// ```
2124

2225
class A_MinSalaryInEachDept {
2326
@Test

src/test/java/com/github/streams/interview/problems/employee/B_MaxSalaryInEachDept.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@
1010
/// ### Given a list of employees, find the maximum salary in each department.
1111
///
1212
/// #### Input
13+
/// ```json
1314
///
1415
/// - Employee(department="Sales", salary=5000)
1516
/// - Employee(department="Sales", salary=6000)
1617
/// - Employee(department="Marketing", salary=4000)
1718
/// - Employee(department="Marketing", salary=7000)
18-
///
19+
/// ```
1920
/// #### Output
20-
/// - Sales=6000, Marketing=7000
21-
///
21+
/// ```json
22+
/// - Sales=6000
23+
/// - Marketing=7000
24+
/// ```
2225
class B_MaxSalaryInEachDept {
2326

2427
@Test

src/test/java/com/github/streams/interview/problems/employee/C_SumOfSalaryInEachDept.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
/// ## Calculates the sum of salaries in each department.
1111
///
1212
/// ### Input:
13-
///
13+
/// ```json
1414
/// - Employee("John", "Sales", 50000)
1515
/// - Employee("Jane", "Marketing", 60000)
1616
/// - Employee("Bob", "Sales", 70000)
17-
///
17+
/// ```
1818
/// ### Output:
1919
///
2020
/// ```json

0 commit comments

Comments
 (0)