โ† Microsoft questions

Design malloc() and free() API

Filed under Microsoft

The question

Design a memory allocation and deallocation mechanism given a big array of free bytes, handling allocation requests of varying sizes and deallocation using only a pointer.

No write-up yet. Related questions below have one.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.