Memory Allocator (Allocate / Free)
Asked at Okta · Coding Questions · Difficulty: Medium · Last asked Nov 5, 2025
Implement a memory manager over a 0/1 array. Process a command stream of allocate/free operations: allocate the left-most consecutive free chunk and assign it an ascending id; free a chunk by id. Return the per-command results.
Loading the problem…
More Okta interview questions
- Hiring-Manager / Project Chat + AI Philosophy
- Count Unique Paths in a Grid
- Cross-Domain SSO After an Acquisition, and OIDC Across Sites
- Dependency Cycle Detection (Deadlock)
- JWT-Protected MCP Server with a Scoped whoami Tool
- Validate IPv4 Addresses in an Array