Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
inStr = '()';
out_correct = true;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
2 | Fail |
%%
inStr = ')';
out_correct = false;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
3 | Fail |
%%
inStr = '(z*(a-(x+3))/(y))';
out_correct = true;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
4 | Fail |
%%
inStr = ')(';
out_correct = false;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
5 | Fail |
%%
inStr = '(x)(x-y)';
out_correct = true;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
6 | Fail |
%%
inStr = ':-)';
out_correct = false;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
7 | Fail |
%%
inStr = ')()';
out_correct = false;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
8 | Fail |
%%
inStr = '(()';
out_correct = false;
assert(isequal(isBalanced(inStr),out_correct))
Error: You may not use the command(s) eval in your code
|
4107 Solvers
1159 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
163 Solvers
Flip the main diagonal of a matrix
506 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!