Problem 55040. B-Zuckerman Numbers
60.0% Correct | 40.0% Incorrect
Last Solution submitted on Jul 13, 2022
William on 13 Jul 2022
In test #1, why are 1, 2, 4 and 8 not considered B-Zuckerman numbers in base-3? For example, 8 is 22 (base-3) and 2*2 = 4.
David Hill on 13 Jul 2022
You are absolutely correct. My algorithm was incorrect. Problem should now be fixed.
Problem Recent Solvers3
Given an unsigned integer x, find the largest y by rearranging the bits in x
Removing rows from a matrix is easy - but what about inserting rows?
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!