Amazon Interview Question for Software Engineer / Developers






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

[correction] read zoom2 as:
aa ab ba bb
ac ad bc bd
ca cb da db
cc cd dc dd

- pmaur March 05, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what will be the sequence on zoom 3?

- Anonymous March 05, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

zoom3:
aaaa aaab abaa abab baba babb bbba bbbb
aaac aaad abac abad babc babd bdba bdbb
acaa acab adaa adab bcba bcbb bdba bdbb
acac acad adac adad bcbc bcbd bdbc bdbd
caca cacb cbca cbcb dada dadb dbda dbda
cacc cacd cbcc cbcd dadc dadd dbdc dbdd
ccca cccb cdca cdcb dcda dcdb ddda dddb
cccc cccd cdcc cdcd dcdc dcdd dddc dddd

- pmaur March 06, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Start from the right most position and move towards left doing this:

1. if current letter is b or d, change to a or c respectively and break (nothing else to do).
2. If current letter is a or c change to b or d respectively and instead of breaking you need scan the next character to your left. Go to (1) for the next left character.

E.g. if your current sequence is cdca, then start from right: change a to b and go to next left. change c to d and move left, change d to c and break (as per point 1). So your sequence is ccdb

Idea is that when you zoom, your first character keeps rotating between a and b, once done it starts repeating your next character to left (aa ab ba bb) so on. So traverse back to get your left sequence for a given sequence.

- Kishore March 05, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Looks like the line did not wrap. So copying again.

1. if current letter is b or d, change to a or c respectively and break (nothing else to do).
2. If current letter is a or c change to b or d respectively and
instead of breaking you need scan the next character to your left. Go to (1) for the next left character.

- Kishore March 05, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

This will not work for CCCC which has a left word as dddb

- Anonymous April 15, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think the Algo is Correct and for CCCC left element will be DDDD and not DDDB

- Nicks April 16, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Shouldn't Zoom 3 be this ?

aaaa aaab abba abbb baaa baab bbba bbbb
aaac aaad abbc abbd baac baad bbbc bbbd
acca accb adda addb bcca bccb bdda bddb
accc accd addc addd bccc bccd bddc bddd
caaa caab cbba cbbb daaa daab dbba dbbb
caac caad cbbc cbbd daac daad dbbc dbbd
ccca cccb cdda cddb dcca dccb ddda dddb
cccc cccd cddc cddd dccc dccd dddc dddd

- Rohit March 12, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Shouldn't zoom3 be a 16x16 matrix, if it's the hadamard multiplication?

- Anonymous March 14, 2011 | 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