PayPal Interview Question

Implement function that Revert the bits within unsigned int, using bit opperation

Interview Answer

Anonymous

May 29, 2012

unsigned int rev_bits(unsigned int n) { unsigned int res=0; int length = sizeof(unsigned int)*8; for(int i=0; i>=1; } return res; }