You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an object: Employee
Employee has 2 properties:
fun: number from 0-100 that indicates how much fun the person is
staff: Array of employee working under the employee
Write a function called guestList that takes in an employee and returns an array of employees that creates the maximum fun. Condition: An employee cannot be on the guestlist if his direct manager is going to the party.
This is a really hard problem. Think about the simplest scenario, then start from there.
The text was updated successfully, but these errors were encountered:
Given an object: Employee
Employee has 2 properties:
Write a function called guestList that takes in an employee and returns an array of employees that creates the maximum fun. Condition: An employee cannot be on the guestlist if his direct manager is going to the party.
This is a really hard problem. Think about the simplest scenario, then start from there.
The text was updated successfully, but these errors were encountered: