File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/test/java/com/github/streams/interview/problems/employee Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1010/// Calculation of the number of employees in each department.
1111///
1212/// ### Input:
13- ///
14- /// - Employee("John", "Sales", 50000)
15- /// - Employee("Jane", "Marketing", 60000)
16- /// - Employee("Bob", "Sales", 70000)
17- ///
13+ /// ```json
14+ /// Employee("John", "Sales", 50000)
15+ /// Employee("Jane", "Marketing", 60000)
16+ /// Employee("Bob", "Sales", 70000)
17+ /// ```
1818/// ### Output:
19- /// - "Sales": 2,
20- /// - "Marketing": 1
21- ///
19+ /// ```json
20+ /// "Sales": 2,
21+ /// "Marketing": 1
22+ /// ```
2223/// #### Explanation:
2324/// This method takes a list of employees as input, groups them by their department
2425/// names, and returns a map where the keys are the department names and the values are the number
You can’t perform that action at this time.
0 commit comments