Amazon.com Interview Question
1,589 Interview Reviews |
Back to all Amazon.com Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Development Engineer II at Amazon.com:
Write a code to reverse binary bit pattern for an integer without using any string or utility methods?
See more for this Amazon.com Software Development Engineer II Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (6)
Helpful Answer?
Yes |
No
Inappropriate?
this might be helpful
Helpful Answer?
Yes |
No
Inappropriate?
unsigned int b=0; /// temp variable
int i;
for(i=0; i<32; i++){
b = b | (a&1);
b = b << 1;
a = a >> 1;
}
Helpful Answer?
Yes |
No
Inappropriate?
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up



0 of 1 people found this helpful
by Interview Candidate: