Cody

Problem 1468. Numbers at bit-boundary

Find if a number is on or below the bit-boundary, as defined below.

Examples

7,9 straddle the bit-boundary at 2^3 as do 31,32 at 2^5; in these cases 7,8 are on bit boundary as are 31, and 32, but 5 and 33 do not qualify by definition.

Solution Stats

63.64% Correct | 36.36% Incorrect
Last solution submitted on Feb 13, 2017
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!