We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ead404 commit ce6ef68Copy full SHA for ce6ef68
src/test/java/com/github/streams/interview/problems/employee/D_NumberOfEmployeeInEachDept.java
@@ -7,6 +7,26 @@
7
import org.junit.jupiter.api.Disabled;
8
import org.junit.jupiter.api.Test;
9
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
+ * {
21
+ * "Sales": 2,
22
+ * "Marketing": 1
23
+ * }
24
+ * </pre>
25
26
+ * Explanation: This method takes a list of employees as input, groups them by their department
27
+ * names, and returns a map where the keys are the department names and the values are the number of
28
+ * employees in each department.
29
+ */
30
class D_NumberOfEmployeeInEachDept {
31
@Test
32
@Disabled
0 commit comments