Amazon Kalido Interview Question for Software Engineer / Developers






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

Pick one fruit from the box labeled "Apples and Oranges". Whichever fruit comes out will be the only fruit in that box. So if you pick an apple from it, the box actually contains all apples. The box labeled "Oranges" will have both apples and oranges and the one originally named "Apples" will have both kinds of fruit.

- Neo July 19, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

what if only 2 baskets are wrongly labelled and one is correctly labelled?

- Anonymous March 19, 2008 | Flag
Comment hidden because of low score. Click to expand.
2
of 2 vote

Take something from Orange/Apple
If it's an Orange:
- Orange/Apple -> Orange
- Apple -> Orange/Apple (it can't be Apple or Orange)
- Orange -> Apple (what's left)
Similarly for an Apple:
- Orange/Apple -> Apple
- Orange -> Orange/Apple
- Apple -> Orange

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

Good one

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

If it's an Orange, the Apple bucket can be Orange also. we can't surely say that it is Orange/Apple

- Manigandan January 05, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

take a fruit from (box1)orange/apple -> let it be orange.. as it is wrongly labeled it can never be orange/apple. So it is Orange.
so the remaining two boxes (box1 and box2) can be either orange/apple or apple.
The apple box (say box2) can never be apple itself as it must be wrongly labeled. So it is Orange/apple. So the final box (box3) will be apple... I hope its clear.. :)

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

So this will take one 1 try to figure out which basket which product.

- Joe July 18, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

neo..u r wrong......the box labeled "oranges" will have only Apples

- giri July 24, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Answer is 1 try.

Since all boxes as mislabelled below is the probability...

Box labelled A + O can contain "A" or "O"
Box labelled O can contain "A" or "A+O"
Box labelled A can contain "O" or "A+O"

If you pick "A" from box labelled A+O,

Box labelled A + O, contains "A"
Box labelled O, contains "A+O"
Box labelled A, contains "O"

If you pick "O" from box labelled A+O,

Box labelled A + O contains "O"
Box labelled O contains "A"
Box labelled A contains "A+O"

- Chandu August 15, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think there is a possibility for label being correct..In that case this will not work..

- Anonymous October 05, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

it said ALL labels are mislabeled.. so no possibility for label being correct in the first place

- bwc October 23, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

nice solution!!

- Anonymous February 28, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

nice explaination chandu!!

- Anu June 29, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

'

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

and 1=

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

' and 1=

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

\'

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

'''

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

ookjk85h74

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1 OR 1=1

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1' OR '1'='1

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1'1

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

' 1 AND 1=1

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1 AND 1=1

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1\'1

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

) or ('1'='1--

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

' or 1=1/*

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

' or 1=1--

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

order by 1000/*

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

order by 1000;--

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

' order by 1000/*

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

' order by 1000;--

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

' or 1=1--

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

" or 1=1--

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

') or ('a'='a

- Anonymous August 23, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

'

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

and 1=

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

' and 1=

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

\'

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

'''

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

ookjk85h74

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

1 OR 1=1

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

1' OR '1'='1

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

1'1

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

' 1 AND 1=1

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

1 AND 1=1

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

1\'1

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

) or ('1'='1--

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

' or 1=1/*

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

' or 1=1--

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

order by 1000/*

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

order by 1000;--

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

' order by 1000/*

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

' order by 1000;--

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

' or 1=1--

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

" or 1=1--

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

') or ('a'='a

- Anonymous April 04, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 0 vote

You open the basket that's labeled Apples and oranges. Lets say you remove an apple from that basket, then that implies that the box contains apples.
Similarly you can find the other boxes and get the answer as 2 ways i think.

- SigProFan July 11, 2007 | 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