Problems
Contest
Discuss
Interview
Online Interview
Assessment
Store
Redeem
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
Rubrik | Systems Coding | Senior Software Engineer
Anonymous User
3212
Jan 15, 2025
Jan 15, 2025
interview experience
Interview
Implement a FIFO Queue:
put(int): Adds item into queue
get() int: Removes and returns item in queue in FIFO order
Requirements:
Fix sized memory buffer []int
No dynamic memory allocation (not allocating new memory or objects as part of put + get()).
Follow up:
Support for multiple thread access.
Two queues which share this same fix sized memory buffer
Need to support FIFO ordering for each queue individually.
The size of this int[] (100MB - > 1GB+)
We want to make sure usage of this fix sized array can be dynamically adjusted based on each indiv. queue's usage.
Minimize memory wastage
4
5
Comments (5)
Sort by:
Best
Comment
1
Explore
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States