Amazon Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
3
of 3 vote

idea's answer is correct for range containing +ve as well as -ve number equally distributed...Mike C's answer is correct too.
I don't understand WTF amazon people ask such kinda of dumb questions...Oh Jesus!!!

- smartAss August 05, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

well i think the question says dat 8 bits are given..eg 11001111....now using these 8 bits, the range is 2 be decided..now there can be 2 types of ranges..1 for all +ves n 1 including -ve nos also..

- Anonymous August 21, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Range will be from -128 to 127
general rule for n bits is--> from -2^(n-1) to (2^(n-1))-1

- idea June 27, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Range could also be 0 to 255 if you only choose unsigned integers
In this case, from 0 to (2^n)-1

- Mike C. June 27, 2009 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More