Discover MakerZone

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

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!

Problem 1295. Bit Reversal

Created by @bmtran

Given an unsigned integer x, convert it to binary with n bits, reverse the order of the bits, and convert it back to an integer.


Problem Group

Solution Statistics

68 correct solutions 32 incorrect solutions
Last solution submitted on Oct 06, 2015

Solution Comments