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

New to MATLAB?

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.

Tags

Problem Group

Solution Statistics

61 correct solutions 30 incorrect solutions
Last solution submitted on Apr 20, 2015

Solution Comments