Memory Allocator
OpenAI interview questions · Hard · Coding round · reported 13× · 6 tests
This allocator looks simple until fragmentation appears: the must-have invariant is coalescing adjacent free blocks immediately after every successful free.
The full question, tests and reference solution are available with a plan that includes OpenAI.
Run your code with Ctrl+Enter to see results.