Coder Social home page Coder Social logo

parking_lot's Introduction

Overview of application.

  1. For solving the problem, the data structure used for representing parking lot is a mix of Heap and maps to solve all of the commands in optimal manner as possible, assuming space is not an issue. Min Heap is used to store the empty slots and fetch the nearest slot in optimal time.

  2. No external testing library has been used as golang provides internal "testing" library. All test cases have been written using it.

  3. script is written in bin/setup to install dependencies,run test case and build package. It will generate bin/parking_lot binary to run the application.

Follow this step to run application in Golang

  1. To run this application, install Go.
  2. Place the package in /go/src/github.com/ where GOPATH(/go/src).
  3. Navigate to path $GOPATH/github.com/parking_lot/
  4. Run /bin/setup script to install dependencies,run test case and build package.
  5. To run application, run binary /bin/parking_lot.Please make sure its in executable mode in your system Run chmod 755 parking_lot in command prompt if not. Please make sure your GOPATH is set to application directory

parking_lot's People

Watchers

James Cloos avatar Jitan Puri 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.