Code Monkey home page Code Monkey logo

kuali's Introduction

The contents of this repository are meant to be shared between Adam Higerd and Kuali. This project is not open-source.

Kuali Research Coding Interview

  • Applicant's Name: Adam Higerd
  • Programming Language: Javascript
  • Approximate Starting Time: 11:45 AM CDT

Thank you for giving me the opportunity to apply with you.

Comments

I noticed that the simulator is not required to check to see if the elevator is going in the right direction when checking for candidates that will pass by the requested floor. All real elevators I've seen make this check, and I have opted to include this in my implementation because it is more realistic, more efficient, and also simpler to implement given the structures I've designed.

The instructions are not clear on what defines a "trip". I have chosen to define it as a passenger getting on, riding, and getting off, but there are other definitions that could also be meaningful -- for example, this definition does not account for travel done by an empty elevator.

I had a phone call come in while I was working on it, so that added an unexpected delay to getting it done. I know the commit timeline is going to look like I spent more than two hours on it but I don't think actual time spent in front of the keyboard will have gone very far over.

I realized as I was putting what I thought were the finishing touches on the code that I failed to account for people waiting for an elevator that's going out of service. If this code were to become a full product, that would need to be taken into account.

Running the simulation with a large number of elevators demonstrates a potential flaw with the strategy outlined in the document: Higher-numbered elevators may take quite some time before they begin to be used, even if it would result in passengers being serviced sooner on average. This could be addressed by giving elevators a "home floor" that they start on and return to if they remain idle for too long, as well as by introducing some weighting to deprioritize elevators that have serviced more passengers.

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.