Object-Oriented Programming · Meta · Hard
Design an in-memory file system that tracks a set of live files and enforces storage quotas per user. Each live file has a unique name, a size, and an owner. Each user has a capacity and a used amount. A user may never have used > capacity. The system starts with one reserved user admin whose capacity is $$10^{18}$$ and whose used starts at 0. No other users exist initially. You receive an ordered list of queries. Execute every query sequentially and return a list containing…
Checking your access…