Skip to content

Commit 1a3d860

Browse files
authored
Update employee_headcount_test.go
Fix error, 5 has some reports and 7 does not.
1 parent 821dd3b commit 1a3d860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graph/employee_headcount_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ TestEmployeeHeadCount tests solution(s) with the following signature and problem
99
1010
Headcount of a person in an organization is 1 + the number of all their reports
1111
(direct and indirect). Given a list of employee IDs and their direct reports in each line like
12-
`1,4,5`, `5,7`, `4`, `7`. Where 1 has two direct reports (4 and 5); 5 has one report (7);
13-
4 and 5 have no reports; Return the headcount of a given employee ID. For example head
12+
`1,4,5`, `5,7`, `4`, `7`. Where 1 has two direct reports (4 and 5) and one indirect report (7); 5 has one report (7);
13+
4 and 7 have no reports; Return the headcount of a given employee ID. For example head
1414
count of 7 is 1, and headcount of 1 is 4.
1515
*/
1616
func TestEmployeeHeadCount(t *testing.T) {

0 commit comments

Comments
 (0)