Search
⌘K

Design a credit tracking service for user token balances

Design a system that tracks user token credits and can efficiently query the number of tokens a user has at any given timestamp. The service should handle credit additions, deductions, and historical balance lookups.

Asked at:

OpenAI


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early April, 2026

OpenAI

Senior

Mid March, 2026

OpenAI

Senior

please provide answer to this Q

Early March, 2026

OpenAI

Senior

Given initial class structure with 6 test cases provided.

Your account is free and you can post anonymously if you choose.