Interview training studio

Code, diagrams, spoken answers, and a company brief. Start with the round you need to practice.

Inside the studio

01 / 04
ledger.tsLayer 03 / 04
type Tx = { accountId: string; delta: number; ts: number };
export function rebuild(events: Tx[]): Record<string, number> {
return events.reduce<Record<string, number>>((acc, ev) => {
const current = acc[ev.accountId] ?? 0;
acc[ev.accountId] = current + ev.delta;
return acc;
}, {});
}

Event-sourced rebuild

Replay from the event log.

Materialize state from event stream. Keep the original transactions immutable.

01Single Account Ledger02Transfers & AtomicityEvent-Sourced Rebuild04Rolling Cashback
Immutable replay coreTypeScript
Folded-paper laptop, architecture diagram, and microphone

A plan for your next interview.

Set the role, round mix, and time you have. Review company sources and debrief your practice to keep the next session focused.

Sign in to build your plan
Folded-paper microphone beside a whiteboard with an architecture diagram