Code Monkey home page Code Monkey logo

lld-car-booking's Introduction

Cab Booking Problem

Problem Statement:

We want to build a cab booking platform to allow a rider to book a cab.

Details:

  • The location is represented as a (x, y) coordinate.
  • Distance between two points (x1, y1) and(x2, y2) is sqrt((x1-x2)^2 + (y1-y2)^2)
  • Platform has decided upon maximum distance a driver has to travel to pickup a rider.
  • A cab has only 1 driver.
  • Sharing of cab is not allowed between riders
  • There is a single type of cab

Please build an application that exposes following features to riders and drivers.

  • Register a rider.
  • Register a driver/cab
  • Update a cab's location
  • A driver can switch on/off his availability
  • A rider can book a cab
  • Fetch history of all rides taken by a rider.
  • End the Trip

Expectation from this round

  • Demonstrable code is first expectation. To do this, you can choose any interface you are comfortable with - CLI, WebApp, MobileApp, APIs or even simply run the code via Tests or a main method.
  • Code should be extensible.
  • Clean professional level code.
  • Functional Completeness including good modelling.
  • User Identification but not authentication.
  • Backend Database is optional. However modelling should be complete.

lld-car-booking's People

Contributors

krishna4singh avatar krishna-singh1 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.