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))
|
Number of 1s in the Binary Representation of a Number
356 Solvers
Calculate the area of a triangle between three points
871 Solvers
376 Solvers
238 Solvers
07 - Common functions and indexing 6
348 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!