← Questions

Rebuild a task tree from parent-child records and print it

0
StripeCodingLast asked Oct 2026

A coding interview question asked in Stripe's technical phone screen, last asked Oct 2026. It tests trees, parsing and formatting.

You get a list of task records and must rebuild the hierarchy of tasks and subtasks they describe, then print it as a text tree. Root records have the fields timestamp, task, task_id and task_name.

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

  • Stripe · Technical phone screen · Last asked Oct 202660 min · One realistic task in parts, in a project editor (CoderPad project mode or HackerRank Projects) with several files and tests

What it tests

trees · parsing · formatting

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