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...
First non-zero element in each column
593 Solvers
Given a 4x4 matrix, swap the two middle columns
515 Solvers
262 Solvers
992 Solvers
289 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!