---
title: "Discussion on \"Design (LLD) a Parking Lot - Machine Coding Interview\" | Hashnode"
description: "Discussion on \"Design (LLD) a Parking Lot - Machine Coding Interview\". Parking Lot\nA parking lot or car park is a dedicated cleared area that is intended for parking vehicles. In most countries where cars are a major mode of transportation, parking lots are a feature of every city and suburban area. Shopping malls, spor..."
url: "https://hashnode.com/posts/design-lld-a-parking-lot-machine-coding-interview/627f8871bc9305ec39362e20"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Design (LLD) a Parking Lot - Machine Coding Interview](https://lldcoding.com/design-lld-a-parking-lot-machine-coding-interview?utm_source=hashnode&utm_medium=feed)

Parking Lot A parking lot or car park is a dedicated cleared area that is intended for parking vehicles. In most countries where cars are a major mode of transportation, parking lots are a feature of every city and suburban area. Shopping malls, spor...

May 14, 2022 · 8 min read · lldcoding.com  
Updated Jan 4  
Read the article

-   [#coding](https://hashnode.com/tag/coding)
-   [#interview](https://hashnode.com/tag/interview)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)

## Written by

[Subhahu Jain](https://hashnode.com/@subhahu)

@subhahu

  
[View profile](https://hashnode.com/@subhahu)

SDE 2 @Atlassian | Ex-MTS @Salesforce | Ex-SDE@Amazon | Mentor@Preplaced | Prev-Mentor @Relevel (by unacademy) | Mentor @GSOC, GCI

## Responses 4

Markdown supported · ⌘↵ to post

[Syed Mizbahuddin](https://hashnode.com/@syedmizbah)

[Feb 25, 2024](https://hashnode.com/posts/design-lld-a-parking-lot-machine-coding-interview/627f8871bc9305ec39362e20/comment/65db271af61eccc09db5653c)

How will this scale, if there are more parking spots type? Adding more HashMap<>, switch case does not look good, should we have a Parking floor Manager and a parking spot Factory? and we just make Parking Spot also an abstract class, make BikeSpot, Car Spot, just like Vehicle and use in Factory?

[HIMANSU ROUT](https://hashnode.com/@HimansuRout)

[Jul 3, 2023](https://hashnode.com/posts/design-lld-a-parking-lot-machine-coding-interview/627f8871bc9305ec39362e20/comment/64a22fdf8db091c4010361d1)

Pretty good

[Subhahu Jain](https://hashnode.com/@subhahu)

[Feb 27, 2023](https://hashnode.com/posts/design-lld-a-parking-lot-machine-coding-interview/627f8871bc9305ec39362e20/comment/63fc1c2d42967b0d40d37c41)

Thanks for pointing it out. I will add them by 5 March

[Deepa Bhat](https://hashnode.com/@deepa30)

[Feb 27, 2023](https://hashnode.com/posts/design-lld-a-parking-lot-machine-coding-interview/627f8871bc9305ec39362e20/comment/63fc0ce342967b0d40d37a82)

There are missing classes like ParkingTicket, ParkingRate. Where do i find it?
