← Questions

Aggregate payment states from asynchronous events

0
StripeCodingLast asked Oct 2026

A coding interview question asked in Stripe's HackerRank assessment, last asked Oct 2026. It tests state machines, parsing and hash map.

Build a small system that receives payment events one by one, in arrival order, and aggregates them into the current state of each payment. Each event has a unique event_id; an event whose ID was already processed must be ignored.

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

What it tests

state machines · parsing · hash map · idempotency

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