Code Monkey home page Code Monkey logo

presentation-problem's Introduction

presentation-problem

Q1) You are the organiser of a conference and need to schedule presentations. You have received requests from N presenters stored in the csv file along with other details as

Presenter Name No. of Hours for Presentation Cost benefit for presenter P1 2 $100 P2 4 $200 P3 2 $50 .. Pn 1 $400

· The first column is the presenter name · Second column indicates number of hours presenter will take for the presentation (assume it to be an integer) · Last one indicates the associated cost (Fees that presenter will charge).

You are given that your conference will last for 8 hrs (but can be any number) with exactly 3 slots (with no breaks and back to back presentation), schedule the presentations for these two independent cases

  1. Maximize the number of presenters - Select the case that fits in maximum number of presenters in the given time schedule. If multiple cases satisfy this scenario, select the ones with minimum cost.

  2. Minimize the cost - Select the case which results in minimum cost for the organizer. If multiple cases satisfy this scenario, then select the ones with maximum number of presenters.

The output should be the names of selected presenters. and total cost e.g. Presenter1, Presenter5, Presenter11 , $150

If multiple cases satisfy the required scenario (e.g having same minimum cost for maximum number of presenters), list all the cases as: Presenter1, Presenter5, Presenter11 , $150 Presenter21, Presenter15, Presenter2, $150 Presenter12, Presenter4, Presenter11, $150 In case all the 3 slots can’t be filled in, output should be “Not enough presenters”

Note: Host the solution on github.com and share the link with us along with unit test cases with sample data to support your solution.

Points to evaluate - · Use of data structure · Unit tests · Logic and efficiency of the solution.

presentation-problem's People

Contributors

thangarajsubramani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.