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))
|
3892 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Calculate distance travelled when given radius and rotations
182 Solvers
452 Solvers
220 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!