This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
assert(isequal(balance('(((()))((())))'),1))
assert(isequal(balance('(()()())'),1))
assert(isequal(balance(['(()()()()()()()()()()()())']),1))
assert(isequal(balance('(()()()))))'),0))
assert(isequal(balance('(()()(((((((((((()))))'),0))
assert(isequal(balance('))()())'),0))
assert(isequal(balance('(()()()()((()))()()()(((()))))'),1))
assert(isequal(balance('((((()))))'),1))
|
Make one big string out of two smaller strings
1148 Solvers
Convert a numerical matrix into a cell array of strings
455 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
546 Solvers
Find Index of maximum Value and maximum Value of a vector
145 Solvers
120 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!