Sorry to steal the lead with this lame solution! I was trying different things before realizing the trick, and hadn't changed the solution back.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 'Macbeth';
y_correct = false;
assert(isequal(two_b_or_not_two_b(x),y_correct))
|
2 | Pass |
%%
x = 'Publius Cornelius Dolabella';
y_correct = true;
assert(isequal(two_b_or_not_two_b(x),y_correct))
|
3 | Pass |
%%
x = 'B is not the same as b';
y_correct = true;
assert(isequal(two_b_or_not_two_b(x),y_correct))
|
The Goldbach Conjecture, Part 2
961 Solvers
1208 Solvers
Number of 1s in a binary string
1228 Solvers
306 Solvers
262 Solvers