Problem 43320. Expand a term
Solution Stats
Problem Comments
-
2 Comments
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.
Solution Comments
-
1 Comment
this "expand" reminds me a famous hilarious joke in classroom. but I guess this is the point...
Problem Recent Solvers30
Suggested Problems
-
399 Solvers
-
Back to basics 21 - Matrix replicating
1192 Solvers
-
Cell Counting: How Many Draws?
1071 Solvers
-
Magic is simple (for beginners)
5290 Solvers
-
Replace multiples of 5 with NaN
387 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!