← Questions

GPU credit ledger with out-of-order events

0
OpenAIPerplexityCodingLast asked Oct 2026

A coding interview question asked in OpenAI's agentic coding (beta) round and at Perplexity, last asked Oct 2026. It tests design, heap and event-sourcing.

Build an in-memory ledger for GPU credits. Credit arrives as grants: each one has a unique id, an amount, and a time window in which it can be spent.

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 · Agentic coding (beta) · Last asked Oct 2026An existing codebase and changes too large to write by hand; you work through them with an AI coding agent · An AI coding agent is expected
  • Perplexity · Technical screen or assessment · Last asked Aug 2025Online assessment or live coding (often CoderPad); problems come in parts, each adding a requirement to your code · Assume no AI unless the recruiter says otherwise

What it tests

design · heap · event-sourcing · intervals

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