Problem 43320. Expand a term
46.67% Correct | 53.33% Incorrect
Last Solution submitted on Feb 24, 2023
Giovanni Mottola on 10 Oct 2016
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?
Marc Jakobi on 14 Oct 2016
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.
bainhome on 25 May 2018
this "expand" reminds me a famous hilarious joke in classroom. but I guess this is the point...
Problem Recent Solvers32
Back to basics 22 - Rotate a matrix
Test Problem; Create a 5x5 array containing all ones
More from this Author14
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!