Amazon Interview Question for Software Engineer / Developers


Country: United States




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

Use topological sort and start evaluating the cell values using stack in that order

- rixcat February 02, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

thumb up.
It feels like a big program to write for an interview, as it needs to handle input, sort, evaluate expressions and do the output...

- freshboy February 02, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Companies having good demand are following a pre-filter method to screen chaps who can code rather than just yap.

Its less headache for the company which is getting way too many resumes.

I believe they would give you ample amount of time, say 1 hour to code this problem and submit to their online judge.

- rixcat February 02, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Actually you don't need to do any sorting, just start evaluating cells one by one, and during the expression computation (a stack) you just reference the cells you need and ask them for their values. If a value for a cell has been computed before, just return it, otherwise calculate it - so the function call stack will do all the work for you

- stdcall February 16, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Was this interview in-person or phone?

- rodrigoreis22 February 03, 2013 | 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