Can anyone kindly check and fix the test suite. It appears that the function name 'balance' already exists on Cody. Thanks.
Error using balance:
First argument must be single or double.
This problem should either be corrected or removed from the String II series as the function name 'balance' already exists on Cody server. Hence, the String II badge can no longer be earned. Really discouraging...
Kindly correct the test suite.
Can anyone kindly check and fix the test suite. It appears that the function name 'balance' already exists on Cody. Thanks. Error using balance: First argument must be single or double.
I think this dude's "anyone" probably means you: @goc3 :)
@Bainhome, Thanks for the clarity. :)
Thanks for the tag, @bainhome. This problem has been fixed so that it is now solvable again.
This problem needs more test cases. For instance, ')(' is not balanced, and it would break a lot of "solutions".
Extract leading non-zero digit
Program an exclusive OR operation with logical operators
Sum the elements in either diagonal of a square matrix
Side of a rhombus
Quine : write a quine in MATLAB
Next lexicographic - permutation
All Humans are Created Equal - Pareto Equality
RPN Calculator for simple arithmetic expressions
Greed is good - Simple partition P[n].
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office