Numbers at bit-boundary - MATLAB Cody - MATLAB Central

Problem 1468. Numbers at bit-boundary

Difficulty:Rate
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

59.21% Correct | 40.79% Incorrect
Last Solution submitted on Aug 29, 2025

Problem Comments

Solution Comments

Show comments
AI Is Transforming Engineering Workflows
It’s an honor to deliver the keynote at MATLAB EXPO 2025. I'll...
0
MATLAB EXPO 2025 Registration is Now Open! November 12 – 13, 2025
Registration is now open for MathWorks annual virtual event MATLAB EXPO 2025...
0

Problem Recent Solvers34

Suggested Problems

More from this Author10

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!