Cody

Solution 224770

Submitted on 28 Mar 2013
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% 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))
Error: Assertion failed.