Memory Allocator
Hard · Coding · 75 min
Implement a fixed-capacity contiguous memory allocator with lowest-address first-fit malloc, address-only free with neighbor coalescing, in-place or relocating realloc, and an O(log C) segment-tree FastAllocator.
This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.
More OpenAI problems
- Infection Spread / Cellular Automata
- GPU Credits / GPU Credit 2
- Social Network / Follow Graph
- Poker Simulation
- Classifier with Noisy Annotators
- Durable Key-Value Store Serialization
- NumPy Puzzle: 1-NN Vectorization → Wx+b Network
- Transformer Bug Hunt
- Distributed Machine Cluster Count and Topology
- Autograd / Manual Backprop + Hillis-Steele Scan