Nice idea, but the test cases are a bit confusing. Why do you add one space before and after '(', but none after ')' and three between the letters and the '+' symbol?
Thanks for the input :)
The reason I add one before '(' is because there is a '2' before it, which is part of the term. The ones between the letters and the '+' symbol are because spaces are characters, too.
this "expand" reminds me a famous hilarious joke in classroom. but I guess this is the point...
1344 Solvers
518 Solvers
231 Solvers
207 Solvers
Matlab Basics II - Max & Index of Max
191 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!