Stripe AI Programming Exercise Interview
Stripe’s AI Programming Exercise is a multi-part coding interview with an AI assistant in HackerRank. A README describes the behavior to implement. As each part adds a requirement, you need to decide what to change and show that the earlier examples still work.
Stripe AI programming exercise at a glance
| Detail | What to expect |
|---|---|
| Where it fits | The exercise can typically appear in the software engineering onsite loop. Check your invitation for your round lineup. |
| Workspace | A HackerRank editor with an AI chat alongside the code. |
| Task | Implement a specification in stages. Later stages build on behavior from earlier ones. |
| Working with AI | You can use the assistant to interpret the README, draft an implementation, suggest tests, or investigate a failure. |
How the round works
- Read the first requirement. Trace one example by hand. If two readings would produce different outputs, ask the interviewer which behavior they expect.
- Get the first part running. Give the assistant a bounded task and review its proposed change. Run an example whose answer you already know.
- Extend the implementation. When the next requirement arrives, identify which earlier assumptions still hold. Add a test for the new behavior and rerun the earlier cases.
- Explain a decision. Point to a suggestion you accepted or revised and show the example or test that informed your choice.
Problems candidates report
How to prepare
- Practice revealing requirements one at a time. Use a multi-part exercise and finish the first part before reading ahead. Notice which design decisions made the next change easier.
- Choose your expected output before asking for code. Keep one example out of the prompt and use it to check the result independently.
- Rehearse debugging a suggestion. When a test fails, narrow it to the smallest failing input. Explain your diagnosis aloud before asking the assistant for a fix.
For a longer walkthrough of the interview experience, see .
Reported Stripe AI programming exercise questions
FAQ
Can I use my own AI tools?
Plan around the assistant in the interview workspace. Check your invitation or ask your recruiter before relying on an external tool.
What if the assistant misreads the README?
Find the sentence that determines the expected behavior and turn it into a small test. Give the assistant the observed and expected outputs, then review the proposed correction.
How should I divide my time across parts?
Get one part working and tested before moving on. Keep those tests quick to rerun so you can spend the next part on the new requirement.