Create a memory management system that allocates fixed-size blocks, in a constrained environment with limited memory. Avoid using malloc, free, new, or delete; instead, rely on a 'memory' function for both managing memory and allocating space for clients.
Anonymous
The only acceptable solution is constant time and constant space. You have to use empty blocks as linked list nodes. When freeing a block append a new node to list, when allocating take a node from list.
Check out your Company Bowl for anonymous work chats.