Cody

Solution 1231952

Submitted on 15 Jul 2017 by Ahmed Abdelbasit
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

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))

y3 = 1 2 3 4 3 2 1 2 3 4 3 2 1 0 y3 = 1 2 1 2 1 2 1 0 y3 = 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 0 y3 = 1 2 1 2 1 2 1 0 -1 -2 -3 y3 = 1 2 1 2 1 2 3 4 5 6 7 8 9 10 11 12 13 12 11 10 9 8 y3 = -1 -2 -1 -2 -1 -2 -3 y3 = Columns 1 through 29 1 2 1 2 1 2 1 2 1 2 3 4 3 2 1 2 1 2 1 2 1 2 3 4 5 4 3 2 1 Column 30 0 y3 = 1 2 3 4 5 4 3 2 1 0