Skip to content

Max fun #58

@songz

Description

@songz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions