← Back to Difficulty Selection

Code Review (Easy): Folder Layout Logic

Story

Lena is working on a new feature that allows developers to organize their project documentation into nested folders. Eva asked her to create a small utility that determines how many different ways a specific number of items can be arranged into a branching folder structure. For example, if a user has three items to sort, Lena’s function should show that there are exactly five unique layouts they could create. This helper will eventually be used to help the UI team prepare for complex organizational charts.

Your Task

Read the story and code, then decide if the code is ready for production or needs improvement.

Hints

What would block an approval? Give me a hint.

Next

Check out Next Topic: Routing Around Spills

Cookies help us track your progress - nothing extra.