Back to problems

Design an in-memory hotel booking system

Object-Oriented Programming · Imc · Medium

Design a hotel reservation service whose entire state lives in memory. You are not allowed to use a database or any other persistent storage. Hotels, room categories, available inventory (or individual room instances), and bookings must all be represented with in-process data structures. Define the interfaces and data models needed to support at least the following operations: Add a hotel, its room types, and the quantity of inventory for each type, or add distinct room…

Checking your access…