You will be given a list of 32 bits unsigned integers. You are required to output the unsigned integers you get by flipping bits in its binary representation (i.e. unset bits must be set, and set bits must be unset) and its binary no in reverse order.
Take 1 for example, as unsigned 32-bits is 00000000000000000000000000000001 and doing the flipping we get 11111111111111111111111111111110 which in turn is 4294967294 and its reverse order is 01111111111111111111111111111111.
Take 2 for example, as unsigned 32-bits is 00000000000000000000000000000010 and doing the flipping we get 11111111111111111111111111111101 which in turn is 4294967293 and its reverse order is 1011111111111111111111111111111.
No of Test cases t, followed by Integer n.
flipped no of n followed by space and then its binary representation in reverse order.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.