javascript solution


  • 0
    F
    var reverseBits = function(n) {
        let res = 0
        for (let i = 0; i < 32; i++) {
            res = res << 1 | (n >> i & 1)
        }
        return res >>> 0
    };
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.