Others
Maths Puzzle
Programming
Program
Write a class that represents a minimal heap. The heap class should at a minimum support the following methods: - AllocTinyHeap() which should initialize the heap with a given amount of bytes - DeleteTinyHeap() which frees all memory associated with the heap - TinyAlloc() which allocates a given number of bytes on the heap if there is room - TinyFree() which frees a specific location on the heap You may define whatever parameters are necessary for the above methods as well as write any additional methods. Overall consideration will be given to correctness, design, code readability as well as any unit testing done. As part of a final solution please submit test cases you used to verify correctness in addition to any unit tests done.
Read Solution (Total 0)
Others Other Question