Given a string consisting of closed parentheses, form a string array in the following way so that the orders of these parentheses are visually apparent.
Example:
str = '(()(()(()(()))))';
out = {'( )'; ' ()( ) '; ' ()( ) '; ' ()( ) '; ' () '}
For more information, please check the test suite.
10743 Solvers
1935 Solvers
747 Solvers
Lychrel Number Test (Inspired by Project Euler Problem 55)
45 Solvers
151 Solvers