Object-Oriented Programming · Ebay · Medium
You are tasked with implementing a circular storage system that manages a fixed number of slots. The system has totalSlots slots, numbered from 0 to totalSlots - 1, all starting in an empty state. You will receive a list of requests to process sequentially, and for each request you must return a single integer result. Each request is represented as an array of three strings. There are two types of operations: Store: ["store", " ", " "] Attempt to reserve numberOfSlots…
Checking your access…