In-Memory User File Store with Quota Eviction
Medium · Coding & Algorithms · Software Engineer · Technical Screen
Problem Statement
Implement an in-memory multi-tenant storage engine CloudStorage that tracks per-account byte budgets, stored files, and automatic space reclamation when an account's budget shrinks.
Support the following methods on CloudStorage:
create_user(user_id: str, capacity: int) -> bool— Provision a new accountuser_idwith a byte ceiling ofcapacity. RaiseValueErrorifcapacity < 0(0is allowed). Ifuser_idalready exists, leave its state and ceiling untouched and returnFalse; otherwise create the account and returnTrue.upload_file(user_id: str, file_id: str, size: int) -> bool— Store a file namedfile_idconsumingsizebytes underuser_id. RaiseValueErrorifsize <= 0, and raiseKeyErrorifuser_idis unknown. ReturnFalsewithout modifying state iffile_idalready exists underuser_idor ifcurrent_usage + size > capacity(an exact fitcurrent_usage + size == capacitysucceeds); otherwise record the file and returnTrue.delete_file(user_id: str, file_id: str) -> bool— RaiseKeyErrorifuser_idis unknown. Iffile_idis absent fromuser_id's account, returnFalse; otherwise remove the file, reclaim itssizebytes, and returnTrue.update_quota(user_id: str, new_capacity: int) -> List[str]— RaiseValueErrorifnew_capacity < 0, and raiseKeyErrorifuser_idis unknown. Setuser_id's byte ceiling tonew_capacity. Whenever the account's stored byte total exceedsnew_capacity, repeatedly evict one file at a time until total usage is<= new_capacity: always evict the file with the largestsizefirst, breaking equal-size ties by the lexicographically smallestfile_id. Return the evictedfile_idstrings in exact eviction order (or[]when no eviction is needed).get_usage(user_id: str) -> int— RaiseKeyErrorifuser_idis unknown; otherwise return the sum of sizes of all live files currently held byuser_id.
File namespaces are isolated per user (two different users may independently hold files with the same file_id), and concurrent calls across threads must execute atomically without violating byte ceilings.
Examples
Example 1
store = CloudStorage()
store.create_user("maya", 120) # True
store.upload_file("maya", "video.mp4", 75) # True (75 / 120 bytes used)
store.upload_file("maya", "archive.zip", 60) # False (75 + 60 = 135 > 120; rejected)
store.upload_file("maya", "notes.md", 30) # True (105 / 120 bytes used)
store.update_quota("maya", 50) # ["video.mp4"]
store.get_usage("maya") # 30
Walk-through: Uploading "archive.zip" (60 bytes) would push Maya's usage to 135 > 120, so it fails without altering her 75-byte usage, allowing "notes.md" (30 bytes) to fit at 105 bytes. Lowering her ceiling to 50 forces eviction of her largest file "video.mp4" (75 bytes), dropping usage to 30 <= 50 and leaving "notes.md" intact.
Example 2
store = CloudStorage()
store.create_user("devon", 250) # True
store.upload_file("devon", "log_b", 80) # True
store.upload_file("devon", "log_a", 80) # True
store.upload_file("devon", "readme", 45) # True (205 / 250 bytes used)
store.delete_file("devon", "readme") # True (160 / 250 bytes used)
store.update_quota("devon", 90) # ["log_a"]
store.update_quota("devon", 0) # ["log_b"]
store.get_usage("devon") # 0
Walk-through: Deleting "readme" frees 45 bytes, leaving two 80-byte files (160 bytes total). Cutting the ceiling to 90 requires evicting one 80-byte file; "log_a" precedes "log_b" lexicographically, so "log_a" is removed first (80 <= 90). Setting the ceiling to 0 then evicts "log_b".
Constraints
user_idandfile_idare non-empty strings.- Valid
capacityandnew_capacityvalues satisfy0 <= capacity <= 10^12; negative values raiseValueError. - Valid
sizevalues satisfy1 <= size <= 10^12; non-positive values raiseValueError. - Up to
10^5total operations may be executed; repeatedupdate_quotacalls must avoid re-sorting all remaining files from scratch on every call.
Step-by-step walkthrough
Pin down the API contract and edge rules
Before selecting data structures, settle every boundary condition from the specification:
- Unknown accounts: Every method other than
create_userraisesKeyErrorwhenuser_idis absent. create_user(user_id, capacity): ReturnsTruewhen registering a fresh account, orFalse(leaving state unchanged) ifuser_idalready exists. RaisesValueErrorifcapacity < 0(capacity == 0is valid).upload_file(user_id, file_id, size): RaisesValueErrorifsize <= 0. ReturnsFalse(leaving state unchanged) iffile_idalready exists under that account or ifused + size > capacity(an exact fitused + size == capacitysucceeds).delete_file(user_id, file_id): Deletes the file, reclaims its bytes, and returnsTrue; returnsFalsewhenfile_idis not present.update_quota(user_id, new_capacity): RaisesValueErrorifnew_capacity < 0. Updates the byte ceiling and repeatedly evicts files whileused > new_capacity— largestsizefirst, breaking ties by lexicographically smallestfile_id— returning evictedfile_ids in eviction order.get_usage(user_id): Returns the account's current stored byte sum.
- Unknown accounts: Every method other than
Why sorting on every quota cut is too slow
A naive implementation keeps
files = {file_id: size}per account, givingO(1)upload_fileanddelete_file. Wheneverupdate_quotadrops the ceiling belowused, it sorts allFlive files by(-size, file_id)inO(F log F)time and pops from the front until usage fits.Why does that hit a wall at
10^5calls? Suppose an account uploads50,000files of2bytes each (100,000bytes total), followed by50,000calls toupdate_quotatrimming the ceiling by2bytes per call:Cut 1 (ceiling 99,998): sorts 50,000 files just to evict 1 file Cut 2 (ceiling 99,996): sorts 49,999 files just to evict 1 file ... Total sort work: 50,000 + 49,999 + ... + 1 ≈ 1.25 * 10^9 elements sorted!We want a data structure that yields the next eviction victim in
O(log F)time without re-sorting untouched files.Key idea: Max-heap via (-size, file_id) plus lazy deletion
A min-heap (Python's
heapq, a binary tree packed in a list whose smallest item sits at index0) pops its minimum element inO(log h)time. How do we make a min-heap pop the largestsizefirst while breaking equal-size ties by the smallestfile_id? Push the 2-tuple(-size, file_id):Tuple comparison in Python's min-heap: (-80, "z_log") < (-45, "a_doc") --> larger size (80 > 45) pops first! (-80, "log_a") < (-80, "log_b") --> equal size (80 == 80): smaller ID ("log_a") pops first!Negating
sizereverses numeric order while keepingfile_idin natural lexicographical order.What happens when
delete_file(user_id, file_id)removes a file sitting deep inside the heap? Scanning the heap array would costO(F). Instead we use lazy deletion:- Pop
file_idimmediately fromuser.filesand subtractsizefromuser.usedinO(1)time, leaving the old(-size, file_id)tuple insideuser.heap. - Later, when
update_quotapops(-size, file_id)fromuser.heap, checkuser.files.get(file_id) == size. Iffile_idwas deleted (or deleted and re-uploaded with a different size), that check isFalse, so we discard the stale tuple and continue! - To prevent stale tuples from accumulating unboundedly when an account deletes thousands of files without cutting quota, whenever
len(user.heap) > 2 * len(user.files) + 16we rebuilduser.heapfromuser.filesviaheapq.heapifyinO(F)linear time (O(1)amortized per delete).
- Pop
Model per-account state and mutex protection
Each account owns an isolated
_Userrecord holdingcapacity,used(a running byte counter forO(1)fit checks),files, andheap.To make check-then-act sequences safe across concurrent threads,
CloudStorageguards public methods withwith self._lock:. Even under CPython's Global Interpreter Lock (GIL), thread switches can occur between evaluatinguser.used + size <= user.capacityand incrementinguser.used, which would let two racing uploads overshoot the ceiling without a mutex.from typing import Dict, List, Tuple import heapq import threading class _User: """Per-user storage record: byte quota, current usage, live files, and eviction heap.""" def __init__(self, capacity: int): self.capacity: int = capacity self.used: int = 0 # files: dict[str, int] mapping live file_id -> current size in bytes self.files: Dict[str, int] = {} # heap: min-heap of (-size, file_id) tuples so the largest size (most negative -size) # pops first, and equal sizes break ties by lexicographically smallest file_id. self.heap: List[Tuple[int, str]] = [] def _compact_heap(self) -> None: """Rebuild the heap from live files in O(F) time so deleted entries cannot accumulate.""" rebuilt: List[Tuple[int, str]] = [] for file_id, size in self.files.items(): rebuilt.append((-size, file_id)) heapq.heapify(rebuilt) self.heap = rebuilt class CloudStorage: def __init__(self): # _users: dict[str, _User] mapping user_id -> per-user state self._users: Dict[str, _User] = {} self._lock = threading.Lock() def _get_user(self, user_id: str) -> _User: user = self._users.get(user_id) if user is None: raise KeyError(f"unknown user {user_id!r}") return user def create_user(self, user_id: str, capacity: int) -> bool: if capacity < 0: raise ValueError("capacity must be >= 0") with self._lock: if user_id in self._users: return False self._users[user_id] = _User(capacity) return TrueImplement upload_file and delete_file
upload_filecheckssize > 0, rejects duplicatefile_ids or uploads whereuser.used + size > user.capacity, and otherwise updatesfiles,used, andheapatomically.delete_filepopsfile_idfromuser.filesand decrementsuser.used, compactinguser.heaponly when dead entries exceed2 * len(user.files) + 16:def upload_file(self, user_id: str, file_id: str, size: int) -> bool: if size <= 0: raise ValueError("size must be positive") with self._lock: user = self._get_user(user_id) if file_id in user.files: return False # Strict '>' allows an exact fit where user.used + size == user.capacity. if user.used + size > user.capacity: return False user.files[file_id] = size user.used += size heapq.heappush(user.heap, (-size, file_id)) return True def delete_file(self, user_id: str, file_id: str) -> bool: with self._lock: user = self._get_user(user_id) size = user.files.pop(file_id, None) if size is None: return False user.used -= size if len(user.heap) > 2 * len(user.files) + 16: user._compact_heap() return TrueEvict largest files first in update_quota
update_quotaassignsuser.capacity = new_capacity(even when zero evictions occur!) and then loopswhile user.used > new_capacity:.Why can
heapq.heappop(user.heap)never raiseIndexErrorinside that loop? Becausenew_capacity >= 0, souser.used > new_capacityguaranteesuser.used > 0— meaning at least one live file remains inuser.files, and every live file still has its(-size, file_id)entry insideuser.heap!Notice why we test
user.files.get(file_id) != sizerather thanfile_id not in user.files: if"log_a"was uploaded at80bytes, deleted, and re-uploaded at15bytes,user.heapholds both(-80, "log_a")and(-15, "log_a"). Testing!= sizeskips the stale80-byte tuple instead of evicting the15-byte file prematurely!def update_quota(self, user_id: str, new_capacity: int) -> List[str]: if new_capacity < 0: raise ValueError("capacity must be >= 0") with self._lock: user = self._get_user(user_id) user.capacity = new_capacity deleted: List[str] = [] while user.used > new_capacity: neg_size, file_id = heapq.heappop(user.heap) size = -neg_size # Skip stale heap entries from deleted files or files re-uploaded at a new size. if user.files.get(file_id) != size: continue del user.files[file_id] user.used -= size deleted.append(file_id) return deletedTrace the examples and stale-entry skipping
First, trace Example 1 (
"maya"with ceiling120):Operation capacity used files heap (min first) Return ───────────────────────────────────────── ──────── ──── ────────────────────────────── ─────────────────────────────────────── ───────────── create_user("maya", 120) 120 0 {} [] True upload_file("maya", "video.mp4", 75) 120 75 {"video.mp4": 75} [(-75, "video.mp4")] True upload_file("maya", "archive.zip", 60) 120 75 {"video.mp4": 75} [(-75, "video.mp4")] False (135>120) upload_file("maya", "notes.md", 30) 120 105 {"video.mp4":75,"notes.md":30} [(-75, "video.mp4"), (-30, "notes.md")] True update_quota("maya", 50) 50 30 {"notes.md": 30} [(-30, "notes.md")] ["video.mp4"]Second, trace tie-breaking plus a deleted-and-resized file (
capacity = 250):1. Upload ("log_b", 80), ("log_a", 80), ("readme", 45) --> used = 205 heap sorted view: [(-80, "log_a"), (-80, "log_b"), (-45, "readme")] 2. delete_file("log_a") --> used = 125, files = {"log_b": 80, "readme": 45} 3. upload_file("log_a", 15) --> used = 140, files = {"log_b": 80, "readme": 45, "log_a": 15} heap now holds: (-80, "log_a") [STALE!], (-80, "log_b"), (-45, "readme"), (-15, "log_a") 4. update_quota(50): - pop (-80, "log_a"): files.get("log_a") is 15 != 80 -> STALE, skip! - pop (-80, "log_b"): files.get("log_b") is 80 == 80 -> EVICT "log_b", used becomes 60 (> 50) - pop (-45, "readme"): files.get("readme") is 45 == 45 -> EVICT "readme", used becomes 15 (<= 50), STOP! Returns ["log_b", "readme"], leaving "log_a" (15 bytes) untouched.Complete solution
Putting
_UserandCloudStoragetogether:from typing import Dict, List, Tuple import heapq import threading class _User: """Per-user storage record: byte quota, current usage, live files, and eviction heap.""" def __init__(self, capacity: int): self.capacity: int = capacity self.used: int = 0 # files: dict[str, int] mapping live file_id -> current size in bytes self.files: Dict[str, int] = {} # heap: min-heap of (-size, file_id) tuples so the largest size (most negative -size) # pops first, and equal sizes break ties by lexicographically smallest file_id. self.heap: List[Tuple[int, str]] = [] def _compact_heap(self) -> None: """Rebuild the heap from live files in O(F) time so deleted entries cannot accumulate.""" rebuilt: List[Tuple[int, str]] = [] for file_id, size in self.files.items(): rebuilt.append((-size, file_id)) heapq.heapify(rebuilt) self.heap = rebuilt class CloudStorage: """In-memory storage with a byte quota per user. Every method except create_user raises KeyError when user_id does not exist. """ def __init__(self): # _users: dict[str, _User] mapping user_id -> per-user state self._users: Dict[str, _User] = {} # Single mutex ensures check-then-act sequences (check quota -> add file) execute # atomically across concurrent threads. self._lock = threading.Lock() def _get_user(self, user_id: str) -> _User: user = self._users.get(user_id) if user is None: raise KeyError(f"unknown user {user_id!r}") return user def create_user(self, user_id: str, capacity: int) -> bool: """Add a user with `capacity` bytes of space. Returns False (and changes nothing) if user_id already exists. Raises ValueError if capacity < 0. """ if capacity < 0: raise ValueError("capacity must be >= 0") with self._lock: if user_id in self._users: return False self._users[user_id] = _User(capacity) return True def upload_file(self, user_id: str, file_id: str, size: int) -> bool: """Store a file of `size` bytes for the user. Returns False (and changes nothing) if the user already has file_id or if the file does not fit in the remaining capacity. Raises ValueError if size <= 0. """ if size <= 0: raise ValueError("size must be positive") with self._lock: user = self._get_user(user_id) if file_id in user.files: return False # Strict '>' allows an exact fit where user.used + size == user.capacity. if user.used + size > user.capacity: return False user.files[file_id] = size user.used += size heapq.heappush(user.heap, (-size, file_id)) return True def delete_file(self, user_id: str, file_id: str) -> bool: """Remove a file and free its bytes. Returns False if the user has no such file.""" with self._lock: user = self._get_user(user_id) size = user.files.pop(file_id, None) if size is None: return False user.used -= size # Lazy deletion leaves the old tuple in user.heap; if stale entries outnumber live # files by more than 2x (+ 16 slack), rebuild in O(F) to keep memory O(live files). if len(user.heap) > 2 * len(user.files) + 16: user._compact_heap() return True def update_quota(self, user_id: str, new_capacity: int) -> List[str]: """Set the user's capacity to new_capacity. While the user's usage is above new_capacity, delete the largest file; among files of equal size, delete the lexicographically smallest file_id first. Returns the deleted file ids in deletion order. Raises ValueError if new_capacity < 0. """ if new_capacity < 0: raise ValueError("capacity must be >= 0") with self._lock: user = self._get_user(user_id) user.capacity = new_capacity deleted: List[str] = [] # Invariant: while user.used > new_capacity >= 0, at least one live file exists, # and every live file has a matching (-size, file_id) entry in user.heap. while user.used > new_capacity: neg_size, file_id = heapq.heappop(user.heap) size = -neg_size # Skip stale heap entries from deleted files or files re-uploaded at a new size. if user.files.get(file_id) != size: continue del user.files[file_id] user.used -= size deleted.append(file_id) return deleted def get_usage(self, user_id: str) -> int: """Total bytes currently stored by the user.""" with self._lock: return self._get_user(user_id).used✅ Submit now — all tests should pass.
Intuition & how it works
Think of each user's storage account as a locker with a weight limit (capacity), an inventory sheet tracking live boxes and their combined weight (files dictionary + used counter), and a priority chute (heap) arranged so the heaviest box is always waiting right at the door if the locker shrinks. Because Python's heapq is a min-heap (a binary tree stored in an array that pops its smallest element in logarithmic time), pushing (-size, file_id) puts the largest size at the front while still breaking equal-size ties by the smallest alphabetical file_id. When a user deletes a file manually, we cross it off files immediately without searching the heap — a technique called lazy deletion (leaving outdated tuples inside the heap and skipping them later if they pop).
Why does the naive design fall short? Storing only a dictionary and sorting all F files inside update_quota costs O(F log F) on every quota cut — so 50,000 uploads followed by 50,000 small quota reductions performs over a billion comparisons just to evict one file per call! Conversely, scanning the heap array during delete_file to remove an arbitrary entry would cost O(F), whereas lazy deletion keeps manual deletes O(1) amortized.
Let's trace Example 2, where "devon" (capacity = 250) uploads ("log_b", 80), ("log_a", 80), and ("readme", 45), deletes "readme", and cuts the ceiling to 90:
1. Uploads: used = 205, files = {"log_b": 80, "log_a": 80, "readme": 45}
heap order: [(-80, "log_a"), (-80, "log_b"), (-45, "readme")]
2. Delete "readme": used = 160, files = {"log_b": 80, "log_a": 80} ((-45, "readme") stays lazily)
3. update_quota(90):
- used (160) > 90 -> pop (-80, "log_a"): files.get("log_a") == 80 (live!) -> evict "log_a", used = 80
- used (80) <= 90 -> stop! Returns ["log_a"] ("log_b" stays; tie broke to "log_a" < "log_b")
Complexity
Let U be the number of registered accounts and F be the number of currently live files under the target account (periodic compaction rebuilds user.heap whenever len(heap) > 2 * F + 16, keeping heap size h = O(F)).
create_userandget_usage: TimeO(1)average, performing a single dictionary lookup (plus insertion forcreate_user) and reading an integer field.upload_file: TimeO(log F), since checkingfile_id in user.filesanduser.used + size > user.capacityareO(1)checks andheapq.heappushsifts across at mostlog2(h) = O(log F)heap levels.delete_file: TimeO(1)amortized, since popping fromuser.filesand subtracting fromuser.usedtakeO(1), and anO(F)heapq.heapifycompaction runs only after at leastF + 17deletes have accumulated since the prior compaction.update_quota: TimeO((k + s) log F)for one call that evictsklive files and discardssstale heap tuples, andO(N log F)total acrossNoperations because each uploaded tuple can be popped at most once in its lifetime (raising or keeping a non-binding ceiling takesO(1)).- Space:
O(U + total_live_files), storingO(F)dictionary entries and at most2 * F + 16heap entries per user.
Edge cases
- Updating ceiling to
0: Evicts all live files in(-size, file_id)order untilused == 0; subsequent uploads returnFalseuntil the ceiling is raised. - Exact-capacity fit and eviction stop condition:
user.used + size == user.capacitysucceeds (>rather than>=), andwhile user.used > new_capacityhalts as soon asused == new_capacity. - Single file larger than entire ceiling: Rejected cleanly by
user.used + size > user.capacitywithout mutating state. - Deleting a missing file (or deleting twice):
user.files.pop(file_id, None)returnsNone, sodelete_filereturnsFalsewithout alteringused. - Delete followed by re-uploading the same
file_idat a different size: If"log_a"was80bytes, deleted, and re-uploaded at15bytes,user.files.get("log_a")is15 != 80, soupdate_quotaskips the stale(-80, "log_a")tuple instead of evicting"log_a"early. - Ceiling increase or non-binding decrease: When
user.used <= new_capacity,user.capacityupdates inO(1)time and[]is returned. - Account isolation and invalid arguments: Identical
file_ids under separate accounts never collide; unknownuser_ids raiseKeyError, andcapacity < 0orsize <= 0raisesValueError.
Common mistakes
- Reversing both
sizeandfile_idon ties: Sorting(size, file_id)withreverse=Trueevicts"log_b"before"log_a"when sizes tie! Negating onlysize((-size, file_id)) in a min-heap puts largest sizes first and smallestfile_ids first. - Testing
file_id in user.filesinstead ofuser.files.get(file_id) == size: When"log_a"(80B) is deleted and re-uploaded as"log_a"(15B),"log_a" in user.filesisTruewhen(-80, "log_a")pops — evicting"log_a"prematurely AND subtracting80instead of15fromuser.used! - Skipping
user.capacity = new_capacitywhenused <= new_capacity: Returning[]early without updatinguser.capacityleaves the account stuck at its old ceiling. - Recomputing
sum(user.files.values())on every upload or eviction loop: DegradesO(1)fit checks intoO(F)linear scans. - Relying on the Python GIL instead of an explicit lock: Two threads can both pass
used + size <= capacitybefore either incrementsused, pushing stored bytes pastcapacity.
Alternative approaches
- Balanced binary search tree /
SortedList: Storing(-size, file_id)in an ordered tree (TreeSetin Java,std::setin C++, orsortedcontainers.SortedListin Python) gives worst-caseO(log F)upload_file,delete_file, and per-file eviction with zero stale tuples, though Python's standard library lacks a balanced tree. - Indexed binary heap: Tracking
file_id -> heap_indexon every swap allowsdelete_fileto remove arbitrary heap items directly inO(log F)time without lazy deletion, at the cost of hand-rolling sift-up and sift-down helpers instead of usingheapq.
Follow-up questions
- How would you adapt the data model for collaborative workspaces where files created by different members count toward one shared folder budget? Extract quota accounting into a standalone
QuotaPoolrecord (capacity,used,files,heap) so each personal drive and each shared workspace owns its ownQuotaPool. Uploading into a shared workspace checks and charges that folder'sQuotaPool(and if per-member ceilings also apply, verifies both the member pool and folder pool before mutating either). When locking per pool, acquire multiple pool locks in a fixed canonical order (such as sortedpool_id) so concurrent uploads can never deadlock. - Which locking strategies would let high-throughput multi-threaded callers operate on separate accounts without bottlenecking on one global mutex? A single
threading.Lockserializes unrelated accounts, so a heavy eviction on Maya stalls uploads by Noah. Because distinct accounts share zero state, move to a per-accountLockstored on_User, holding a tiny directory lock (or sharded bucket locks /ConcurrentHashMapin Java) only long enough to look up or insert the_Userreference. If read calls likeget_usagedominate mutations, a readers-writer lock (allowing concurrent readers or one exclusive writer) or partitioninguser_idhashes across single-threaded workers removes contention further. - If account quotas and file catalogs must survive sudden power loss on disk, how would you structure durable writes and crash recovery? Append every mutation (
CREATE_USER,UPLOAD,DELETE,UPDATE_QUOTAwith its evictedfile_idlist and a CRC32 checksum) to an append-only write-ahead log (WAL) and flush it to durable media viafsync(an OS call forcing buffered writes onto physical storage) before acknowledging the call. Periodically write a compact checkpoint snapshot of all accounts'capacityandfilesto a temporary file,fsyncit, and atomicallyrenameit into place alongside its covered WAL byte offset. On restart after a crash, load the latest snapshot, replay WAL entries past that offset (ignoring any truncated tail entry with a bad checksum), and rebuild each account's eviction heap inO(F)viaheapq.heapify.
Follow-up questions
- How would you adapt the data model for collaborative workspaces where files created by different members count toward one shared folder budget?
- Which locking strategies would let high-throughput multi-threaded callers operate on separate accounts without bottlenecking on one global mutex?
- If account quotas and file catalogs must survive sudden power loss on disk, how would you structure durable writes and crash recovery?
Similar questions
- Top-K Frequencies Across Batch, Stream, and Sliding Windows
- Enum-Driven Restaurant Menu Manager
- Point-of-Sale Receipt Engine with Promotional Bundles
- Thread-Safe Kitchen Order Queue and Pickup Coordinator
- Menu Tree Parser and Serializer
- Real-Time Kitchen Order Storage and Fulfillment Engine
More CloudKitchens interview questions
- Top-K Frequencies Across Batch, Stream, and Sliding Windows Medium
- Enum-Driven Restaurant Menu Manager Medium
- Real-Time Kitchen Order Storage and Fulfillment Engine Medium Pro
- Point-of-Sale Receipt Engine with Promotional Bundles Medium Pro
- Thread-Safe Kitchen Order Queue and Pickup Coordinator Medium Pro
- Menu Tree Parser and Serializer Medium Pro