Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max fun #58

Open
songz opened this issue Jun 1, 2017 · 0 comments
Open

Max fun #58

songz opened this issue Jun 1, 2017 · 0 comments
Labels

Comments

@songz
Copy link
Collaborator

songz commented Jun 1, 2017

Given an object: Employee
Employee has 2 properties:

  1. fun: number from 0-100 that indicates how much fun the person is
  2. 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.

@songz songz added the hard label Jun 1, 2017
yjlim5 added a commit that referenced this issue Jun 5, 2017
yjlim5 added a commit to yjlim5/algorithms that referenced this issue Jun 5, 2017
yjlim5 added a commit to yjlim5/algorithms that referenced this issue Jun 5, 2017
yjlim5 added a commit to yjlim5/algorithms that referenced this issue Jun 14, 2017
yjlim5 added a commit that referenced this issue Jun 15, 2017
Solution and Test for issue #58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant