Microsoft Interview Report
- 3of 3 votes
Answers3. Write a class that represents a minimal heap. The heap class should at a minimum support the following methods:
- Pritam March 04, 2014 in United States
- 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.| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.