← Questions

Memory allocator with malloc, free and coalescing

0
OpenAIMicrosoftTeslaCodingLast asked Oct 2026

A coding interview question asked in OpenAI's technical screen (coding) and at Microsoft and Tesla, last asked Oct 2026. It tests memory management, binary-search and systems.

Manage one arena of size bytes, addressed by offset from 0. You hand out and take back ranges of it, like malloc and free in C.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • OpenAI · Technical screen: coding · Last asked Oct 202660 min · One problem in three to five growing parts filling the hour, usually in CoderPad; ML roles get a Colab notebook with autocomplete off · No AI assistants or autocomplete; documentation is fine
  • Microsoft · Technical phone screen · Last asked May 202660 min · One technical round
  • Tesla · Technical phone screen · Last asked Sep 202545 min · 10 to 20 minutes on your background, then one compact coding, debugging or design task in CoderPad that must run

What it tests

memory management · binary-search · systems · python

Your code and the AI tutor open when you unlock this question.