Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 1234455611;
b = 2;
y_correct = 1;
assert(isequal(countMeIn(a,b),y_correct))
ans =
1
|
2 | Pass |
a = 1234455611;
b = 1
y_correct = 3;
assert(isequal(countMeIn(a,b),y_correct))
b =
1
ans =
3
|
3 | Pass |
a = 1234455611;
b = 4
y_correct = 2;
assert(isequal(countMeIn(a,b),y_correct))
b =
4
ans =
2
|
Find the longest sequence of 1's in a binary sequence.
2443 Solvers
1313 Solvers
Extract leading non-zero digit
967 Solvers
354 Solvers
126 Solvers