Practice / Problem sets /Bits and math
The problem, in one line. Take a 32-bit unsigned number, write its bits in the opposite order, and return the new number. LeetCode 190.
The tell. “32-bit” and “reverse” together. The width is fixed, so leading zeros count as bits and must travel to the other end.
Included with a plan
This solution is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.