← Questions

Subscription billing with proration and tiered usage

0
StripeCodingLast asked Oct 2026

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

Build a small billing engine that produces each user's charge for one 30-day cycle. Amounts are in cents, and the final charge per user is rounded down only once, at the end.

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

billing · simulation · hash map · prefix sums

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