← Back to Difficulty Selection

Code Review (Easy): Nested Widget Options

Story

Lena was tasked with building a layout previewer for the team's new dashboard builder, which uses pairs of parentheses to group different data widgets. To ensure the rendering engine could handle every possible configuration, Mark asked her to write a utility that lists every valid way these groups can be nested or sequenced. For instance, if a user wants to organize three sets of widgets, the utility should suggest arrangements like three separate pairs or a single set of three nested groups. This small helper will now serve as the logic for the platform's automated grouping suggestions.

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: Sorting Label Variations

Cookies help us track your progress - nothing extra.