Design Memory Allocator at Qualcomm

Medium49.7% acceptance

This problem has 50.0% frequency at Qualcomm.

Problem Description

You are given an integer `n` representing the size of a **0-indexed** memory array. All memory units are initially free. You have a memory allocator with the following functionalities: 1. **Allocate** a block of `size` consecutive free memory units and assign it the id `mID`. 2. **Free** all m...

Read full problem and hints

Topics

Also asked at 15 companies


More Qualcomm Questions

View all Qualcomm questions