Implement Aligned Memory Allocation

Problem

Implement an allocator that returns memory aligned to a specified byte boundary, together with a matching deallocation function.

The original interview required C. The post does not specif...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: