Geeks Talk

Prepare for your Next Interview




Cards problem...

This is a discussion on Cards problem... within the Brainteasers forums, part of the Brain Gym category; My Friend has 3 cards face down on a desk. One is a queen and other two are kings. He knows which card has queen and king. You can ask ...


Go Back   Geeks Talk > Brain Gym > Brainteasers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-18-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Cards problem...

My Friend has 3 cards face down on a desk. One is a queen and other two are kings. He knows which card has queen and king. You can ask my friend one YES or NO question, but when you do, you need to point to one of the cards. If you point to an king, he will tell the truth, if you point to the queen, he will randomly say YES or NO. You have to find one of the kings.

Tell me what question you need to ask my friend?

-----------------------
suresh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-18-2007
Contributing Member
 
Join Date: Aug 2007
Posts: 67
Thanks: 9
Thanked 9 Times in 8 Posts
raj1402 is on a distinguished road
Re: Cards problem...

i think u can point to any card and ask

this is the one of the three kings

the answer should be no as only two kings are there

if he says no he is telling truth and the card is queen other two cards are knig

if he says yes he is telling lie and the card is queen other cards are king!!!

i think i got it correct!!!
Reply With Quote
  #3 (permalink)  
Old 10-18-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: Cards problem...

No raj. Your answer was wrong. For example you point the king card and ask my friend "this is the one of the three kings". So my friend answer is NO. According to your solution "if he says no he is telling truth and the card is queen other two cards are knig". Is it correct? plz work out all the possibilities.

------------------------
suresh

Last edited by psuresh1982 : 10-18-2007 at 11:10 AM.
Reply With Quote
  #4 (permalink)  
Old 10-18-2007
Contributing Member
 
Join Date: Aug 2007
Posts: 67
Thanks: 9
Thanked 9 Times in 8 Posts
raj1402 is on a distinguished road
Re: Cards problem...

If he says no he is telling the truth so the card is queen and other two cards are king
you can tell the other two cards are king right
we can find the cards which are king
if he says yes he is not telling the truth and the card is queen
this holds true when you point on queen suppose you point on king and ask the question he cant answer yes or no ...
Reply With Quote
  #5 (permalink)  
Old 10-19-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: Cards problem...

I think you didn't understand what i am saying...How you assume if he tell yes that card is queen.

Look at my question. "If you point to an king, he will tell the truth, if you point to the queen, he will randomly say YES or NO"

Also according to my previous post initially i am pointing the king card but your answer "that card is queen". Is it correct?

----------------------
suresh
Reply With Quote
  #6 (permalink)  
Old 10-22-2007
Junior Member
 
Join Date: Oct 2007
Location: india
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
sopova123 is on a distinguished road
Re: Cards problem...

There can be only three arrangements of the card case 1:q k k case 2:k q k case 3:k k q the question we can ask by pointing to the first card, ie. The left most one is: "the card next to it is a queen" case 1 : a)he replies yes, which will be false , so third one is the king b)he replies no, which is true, so so second is king. Case 2: he will always reply yes as this is a king , then third will be automatically the king case 3: he will always reply no as this is a king , then second will be automatically the king to summarize: if he answers yes to the question, the third one will be a king if he answers no to the question, the second one will be a king.

Last edited by sopova123 : 10-22-2007 at 04:09 PM. Reason: Formatting
Reply With Quote
  #7 (permalink)  
Old 10-22-2007
Junior Member
 
Join Date: Oct 2007
Location: india
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
sopova123 is on a distinguished road
Re: Cards problem...

There can be only three arrangements of the card
Case 1:q k k
Case 2:k q k
Case 3:k k q
The question we can ask by pointing to the first card, ie. The left most one is: "the card next to it is a queen"

Case 1 : a)he replies yes, which will be false , so third one is the king b)he replies no, which is true, so so second is king.

Case 2: he will always reply yes as this is a king , then third will be automatically the king

Case 3: he will always reply no as this is a king , then second will be automatically the king

To summarize: if he answers yes to the question, the third one will be a king if he answers no to the question, the second one will be a king.
Reply With Quote
  #8 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: Cards problem...

Nice solution sopova123. Here is my answer for this question.....

Point to the middle card and say, "Is the card to the right an king?" If the answer is yes, then the card on the right is an king. If the answer is no, the card on the left is an king.

This solution works because if you're pointing to an king then he's obviously telling the truth and if you're pointing to the queen the answer doesn't matter anyway because you will pick one of the other two which are both kings.


-------------------------
suresh
Reply With Quote
  #9 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Aug 2007
Posts: 67
Thanks: 9
Thanked 9 Times in 8 Posts
raj1402 is on a distinguished road
Re: Cards problem...

im not clear if the middle card ur pointing is queen and

u ask is the card right to this is king he may tell yes or no as the card is queen!!!

then how to guess!!!
Reply With Quote
  #10 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: Cards problem...

Hi Raj,

Please read my question carefully.

My Friend has 3 cards face down on a desk. One is a queen and other two are kings. He knows which card has queen and king. You can ask my friend one YES or NO question, but when you do, you need to point to one of the cards. If you point to an king, he will tell the truth, if you point to the queen, he will randomly say YES or NO. You have to find one of the kings..

So if you point the queen then automatically you will find one of kings. Because both the side you have a king.

So my question is to find any one of the king not both. I think now you will clear.

------------------
suresh
Reply With Quote
  #11 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Aug 2007
Posts: 67
Thanks: 9
Thanked 9 Times in 8 Posts
raj1402 is on a distinguished road
Re: Cards problem...

[i]Point to the middle card and say, "Is the card to the right an king?" If the answer is yes, then the card on the right is an king. If the answer is no, the card on the left is an king. [i]

but

assume the centre card is queen and u r pointing to it and asking
" Is the card to the right an king?"

as the card u pointing is queen he may say the truth or lie

suppose he lies then

Last edited by raj1402 : 10-23-2007 at 02:46 AM.
Reply With Quote
  #12 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: Cards problem...

Please complete your question......

------------------
suresh
Reply With Quote
  #13 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Aug 2007
Posts: 67
Thanks: 9
Thanked 9 Times in 8 Posts
raj1402 is on a distinguished road
Re: Cards problem...

assume the centre card is queen (u dont know that its queen)

and u r pointing to it and asking

" Is the card to the right an king?"

as the card u pointing is queen he may say the truth or lie

suppose he lies then how will u decide

just reply for this situation alone!!!
Reply With Quote
  #14 (permalink)  
Old 10-23-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 76 Times in 64 Posts
psuresh1982 will become famous soon enough
Re: Cards problem...

Only one logic i am using here. If he says yes then i will take the right side card and if he says no then i will take the left side card. I never mind it is queen or king.

Situation 1: Card is Queen
Let we assume he tell truth. So he say YES and i will select the right side card as king. Let we assume he tell lie. So he say NO and i will select the left side card as king.

In the both assumption i will get the king card. Becasue both side of the queen we have a king.

Situation 2: Card is King
Here he tell truth. So he say YES if the king card as right and i will select that card. he say NO if the king card as left and i will select that card.

Still you doesn't understand please workout practically. Because i can't able to explain other than simply this. Or our geekinterview members will helps you.

-----------------------
suresh
Reply With Quote
Reply

  Geeks Talk > Brain Gym > Brainteasers


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Two packs of cards.... psuresh1982 Mathematical Puzzles 1 07-25-2007 03:44 AM
Flying Cards Problem..... psuresh1982 Mathematical Puzzles 1 07-25-2007 03:39 AM
How do we write test cases on calling cards Geek_Guest Test Cases 1 07-19-2007 09:59 AM
Transfer video from VHS, TV tuners, DVB cards, miniDV and WEB cameras to hard drive i JobHelper Geeks Lounge 0 03-28-2007 03:20 PM
Play your cards well... Lokesh M Geeks Lounge 2 10-08-2006 04:02 PM


All times are GMT -4. The time now is 09:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved