Design A Parking Garage | Google SWE Teaches Low Level Design Episode 4

preview_player
Показать описание
Selling 2 parking spots - one upper level one lower level, prices vary per level, please message my only fans if interested
Рекомендации по теме
Комментарии
Автор

I am enjoying your videos, thanks for sharing the knowledge!
Content is crisp, delivery is consistent. So I don't need to change the playback speed often, which happens to be the case with many other channels!

priyanshubajpai
Автор

I come here after watching your video with Gaurav Sen doordash system design interview.

rvpandey
Автор

As already pointed by a couple other comments, when you add/ remove elements from priority queue, you would heapify which changes the index for the spot in underlying array. This would mean your hashmap goes out of sync not only for the element that is being inserted/deleted but in worst case for all the elements in the map. You would then have to construct the entire map again which I dont think is very good and negates the value provided by the priority queue. At this point you may as well do a linear search. Am I missing something here?

supritdk
Автор

@jordan Can you please elaborate more on parkingSpotHashMap and pQueues ? How these are defined .

Rakeshkumar-poyg
Автор

ig you put EXIT_NUMBER as a parameter in the method signature instead of the entrance_number

priyanshubajpai
Автор

enter method would also need to remove the 'location in p_queue' from parkingSportHashMap? or is it redundant?

priyanshubajpai
Автор

@9:54, wouldn’t add element into min heap also change the index of array? i.e. the value in the hashmap?

huazhou
Автор

Nice ! Question. Wouldn't priority queue array index vary based on adding/removing of other vehicles in the queue ?

sudhirdharmadhikari
Автор

Yo Jordan, I have a OOP type technical interview coming up. Been watching through your videos. Do you have any resources you could point me to that helped you with breaking down these problems, etc? (I like men)

amen
Автор

Hey @jordanhasnolife5163 I had a interview where I need to design a way where two screen are connected to each other (like a video wall Screens) and when we press "ON" button on remote controller both the screens will be turned on and when we press "OFF" button both will be turned of. Can we do with the help of sockets or if you can suggest a way to do so? Please help me.

Rakeshkumar-poyg
Автор

Typical parking lot doesn’t assign spot

zuowang