Amazon Interview Question






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

Question unclear! Few clarifications requested...
1. Is 'i' given at runtime?
2. Does 'i' indicate the number of false statements below it? or does it signify something else?

- cuppanomics April 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Question is not clear...
does it mean
statement 1 says 1 statement is false;
statement 2 says 2 statements are false;
.........
n statement says n statement are false;

If so then there are no true statements.....

- Anonymous April 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Assuming n>1, the (n-1)th statement is true and the others are false.

- Anonymous April 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think it means
statement 1 says statements i11,i12,... are false
statement 2 says statements i21,i22,... are false
...
Create a vertex for each statement, create an undirected arc between node i and j if statement i says statement j is false. Determine if this graph is bipartite.

- Anonymous April 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

(N-1)th statement is always true.

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

assume 1 statement is true for N=2
use mathematical induction

- Anonymous December 07, 2014 | 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