anomaly2104 / Lld Parking Lot
Repository for low level design solution of parking lot
Stars: ✭ 27
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Lld Parking Lot
Low Level Design Primer
Dedicated Resources for the Low-Level System Design. Learn how to design and implement large-scale systems. Prep for the system design interview.
Stars: ✭ 2,706 (+9922.22%)
Mutual labels: interview, interview-questions, interview-preparation, design-patterns, system-design
Awesome-Software-Engineering-Interview
No description or website provided.
Stars: ✭ 409 (+1414.81%)
Mutual labels: interview, interview-questions, interview-preparation, system-design
System Design Interview Questions
A curated list of System Design interview questions for SDE-1 (Experienced),SDE-2 and above.
Stars: ✭ 205 (+659.26%)
Mutual labels: interview, interview-questions, interview-preparation, system-design
Awesome Javascript Interviews
Popular JavaScript / React / Node / Mongo stack Interview questions and their answers. Many of them, I faced in actual interviews and ultimately got my first full-stack Dev job :)
Stars: ✭ 939 (+3377.78%)
Mutual labels: interview, interview-questions, interview-preparation, system-design
System Design And Architecture
Learn how to design large-scale systems. Prep for the system design interview.
Stars: ✭ 1,005 (+3622.22%)
Mutual labels: interview, interview-questions, design-patterns, system-design
Interviewguide
《大厂面试指北》——包括Java基础、JVM、数据库、mysql、redis、计算机网络、算法、数据结构、操作系统、设计模式、系统设计、框架原理。最佳阅读地址:http://notfound9.github.io/interviewGuide/
Stars: ✭ 3,117 (+11444.44%)
Mutual labels: interview, interview-questions, interview-preparation, system-design
Awesome Scalability
The Patterns of Scalable, Reliable, and Performant Large-Scale Systems
Stars: ✭ 36,688 (+135781.48%)
Mutual labels: interview, interview-questions, design-patterns, system-design
System Design Interview
System design interview for IT companies
Stars: ✭ 16,342 (+60425.93%)
Mutual labels: interview, interview-questions, interview-preparation, system-design
How To Prepare For Google Interview Swe Sre
This repository includes resources which are more than sufficient to prepare for google interview if you are applying for a software engineer position or a site reliability engineer position
Stars: ✭ 251 (+829.63%)
Mutual labels: interview, interview-questions, interview-preparation, system-design
CodingInterview
Leetcode解题、剑指offer第二版💪💪💪⛷😀
Stars: ✭ 28 (+3.7%)
Mutual labels: interview, interview-questions, interview-preparation
Algorithm-Implementations
Lots of algorithm's & their implementations that have been compiled from a variety of locations.
Stars: ✭ 15 (-44.44%)
Mutual labels: interview, interview-questions, interview-preparation
Frontend-Developer-Interview-Preparation
Things you need to know to crack that frontend developer job [Work in Progress]
Stars: ✭ 113 (+318.52%)
Mutual labels: interview, interview-questions, interview-preparation
Js Interview Questions
❔❓❔ Notes from technical (javascript) interviews. Tasks and quiz for different topics to discuss on interview / check self skills in javascript
Stars: ✭ 830 (+2974.07%)
Mutual labels: interview, interview-questions, interview-preparation
javascript-interview-questions
A collection of JavaScript modern interview questions for beginners to experts
Stars: ✭ 290 (+974.07%)
Mutual labels: interview, interview-questions, interview-preparation
counter-interview.dev
a collaborative collection of interview questions collected from both sides of the game: Interviewer(s) and Interviewee.
Stars: ✭ 102 (+277.78%)
Mutual labels: interview, interview-questions, interview-preparation
iOS-Interview
📚 Comprehensive list of questions and problems to pass an interview for the iOS Developer position
Stars: ✭ 127 (+370.37%)
Mutual labels: interview, interview-questions, interview-preparation
interview-tips
A collection of awesome Interview Tips and Questions
Stars: ✭ 29 (+7.41%)
Mutual labels: interview, interview-questions, interview-preparation
reactjs-persian-interview-questions
مجموعه برترین سوال و جوابهای ریاکت(احتمالا برای استخدام اینا)
Stars: ✭ 323 (+1096.3%)
Mutual labels: interview, interview-questions, interview-preparation
Coding-Interview-101
Solutions to LeetCode problems filtered with companies, topics and difficulty.
Stars: ✭ 21 (-22.22%)
Mutual labels: interview, interview-questions, interview-preparation
Codinginterviews
This repository contains coding interviews that I have encountered in company interviews
Stars: ✭ 2,881 (+10570.37%)
Mutual labels: interview, interview-questions, interview-preparation
Video explanation:
Low Level System Design - Parking lot
Problem Statement
Project Requirements
- JDK 1.8
- Maven
- For Unit Tests:
- Junit 4
- Mockito
Compiling/Building and running the unit tests
Go to the project root folder and then run: ./bin/setup.sh
Runing the project
NOTE: Before running, please make sure you do the above setup step. Otherwise it will not run. The project can be run as follows in one of the two ways:
-
Using file based input:: It accepts a filename as a parameter at the command prompt and read the commands from that file.
./bin/parking_lot.sh <input_filepath>
Example: ./bin/parking_lot.sh ./file_input.txt -
Using file based input:: This will run the program in the interactive shell mode where commands can be typed in.
./bin/parking_lot.sh
Further Enhancements:
- Dependency injection: Currently dependencies are injected manually. We can use some dependency injection framework like spring.
- Exit command: Exit command is currently coupled with interactive mode only which makes it non-reusable.
- Parking strategy: Parking strategy is currently associated with
ParkingLotService
. Instead of that, it makes more sense to associate it withParkingLot
. - Mode: Mode checking is currently done in main function directly. There could be a factory for that.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].