File tree Expand file tree Collapse file tree 1 file changed +17
-19
lines changed
src/test/java/com/github/streams/interview/problems/employee Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change 77import org .junit .jupiter .api .Disabled ;
88import org .junit .jupiter .api .Test ;
99
10- /**
11- * Calculation of the number of employees in each department. <br>
12- *
13- * <pre>
14- * Input:
15- * Employee("John", "Sales", 50000)
16- * Employee("Jane", "Marketing", 60000)
17- * Employee("Bob", "Sales", 70000)
18- *
19- * Output:
20- * "Sales": 2,
21- * "Marketing": 1
22- *
23- * </pre>
24- *
25- * Explanation: This method takes a list of employees as input, groups them by their department
26- * names, and returns a map where the keys are the department names and the values are the number of
27- * employees in each department.
28- */
10+ /// Calculation of the number of employees in each department.
11+ ///
12+ /// ### Input:
13+ ///
14+ /// - Employee("John", "Sales", 50000)
15+ /// - Employee("Jane", "Marketing", 60000)
16+ /// - Employee("Bob", "Sales", 70000)
17+ ///
18+ /// ### Output:
19+ /// - "Sales": 2,
20+ /// - "Marketing": 1
21+ ///
22+ /// #### Explanation:
23+ /// This method takes a list of employees as input, groups them by their department
24+ /// names, and returns a map where the keys are the department names and the values are the number
25+ /// of employees in each department.
26+
2927class D_NumberOfEmployeeInEachDept {
3028 @ Test
3129 @ Disabled
You can’t perform that action at this time.
0 commit comments