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...
Make one big string out of two smaller strings
1157 Solvers
Flag largest magnitude swings as they occur
588 Solvers
Implement simple rotation cypher
955 Solvers
493 Solvers
Compute LOG(1+X) in natural log
206 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!