Loading...
beginner
Problem 01 • Step 03
Nested Addition
In this step, you’ll handle expressions where one or both sides of the + are themselves combinations.
Your previous rule worked for simple cases, but fails when the parts of the expression are more complex.
To solve this, you’ll apply the same idea recursively, evaluate the left and right sides first, then combine their results.
Remove the text null // Replace null with correct expression and write your expression.