Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 241;
y_correct = 255;
assert(isequal(NextBinaryPalindrome(x),y_correct))
|
2 | Pass |
x = 2020;
y_correct = 2047;
assert(isequal(NextBinaryPalindrome(x),y_correct))
|
3 | Pass |
x = 10051;
y_correct =10233;
assert(isequal(NextBinaryPalindrome(x),y_correct))
|
4 | Pass |
x =40504;
y_correct =40569;
assert(isequal(NextBinaryPalindrome(x),y_correct))
|
Find the two most distant points
1628 Solvers
874 Solvers
The Hitchhiker's Guide to MATLAB
2874 Solvers
Convert a vector into a number
503 Solvers
208 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!