How would I implement malloc and free for 3 constant buffer sizes, that will provide O(1) runtime for both functions?
Anonymous
2 Linked-Lists for each buffer size, one for free blocks and one for occupied ones
Check out your Company Bowl for anonymous work chats.