Headcount
The fire inspector is demanding to know if our office is under the fire safety occupancy limit. We're not entirely sure how many employees we have, so we need you to go count them. Here's our department structure as a deeply-nested data object.
Good luck!
Bonus: can you think of a valid solution that doesn't use recursion?
- Waiting on logic tests...
- Waiting on linter...
Waiting on logic tests and linter...
Loading code block...
Loading editor...
Click to show solution
Loading code block...