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...
4137 Solvers
4203 Solvers
542 Solvers
207 Solvers
291 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!