## Intuit Interview Question for Interns

• 1

Country: India
Interview Type: Phone Interview

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

this question demonstrates the implication relation. primary discreet structures.

You'd ask one gatekeeper what other one would say if they were asked is heaven behind the door...

no means you select that door, yes means you select the other door.

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

Is it not the other way round ? Yes means the heaven door, no means the other door ?

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

Assumptions: G1 and G2 are gatekeepers (not assuming which standing to heaven or hell, this is to find)
"Given that G2 is the Hell gatekeeper but he is saying G1 is the Hell gatekeeper, is G2 lying?"
this above statement will only be a valid statement, if it considers the mutually exclusive Truthness personality of G1 and G2

Above question can be split into two sub statements
1. Given that G2 is the Hell gatekeeper
2. but he(G2) is saying G1 is the Hell gatekeeper

So if we suppose that statement 1 is True, then statement 2 must be a False

Suppose G2 is the Hell gatekeeper :: our supposition
If G1 says: "Yes G2 is lying, I'm heaven gatekeeper" then:
Question is a valid statement and so this means G1 is speaking the truth and G1 is the heaven gatekeeper
If G1 says: "G2 is speaking the truth" then:
Question becomes invalid as G1 answer goes against the mutually exclusivity
so above supposition goes wrong that G2 is the Hell gatekeeper so G2 is the Heaven gatekeeper
and so G1 is a lier and he's the Hell gatekeeper

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

Errata in Above answer by me.

Assumptions: G1 and G2 are gatekeepers (not assuming which standing to heaven or hell, this is to find)
"Given that G2 is the Hell gatekeeper but he is saying G1 is the Hell gatekeeper, is G2 lying?"
this above statement will only be a valid statement, if it considers the mutually exclusive Truthness personality of G1 and G2

Above question can be split into two sub statements
1. Given that G2 is the Hell gatekeeper
2. but he(G2) is saying G1 is the Hell gatekeeper

So if we suppose that statement 1 is True, then statement 2 must be a False

Suppose G2 is the Hell gatekeeper :: our supposition
If G1 says: "Yes G2 is lying, I'm heaven gatekeeper" then:
Question is a valid statement and so this means G1 is speaking the truth and G1 is the heaven gatekeeper
If G1 says: "G2 is speaking the truth" then:
Question becomes invalid as G1 answer goes against the mutually exclusivity
so above supposition goes wrong that G2 is the Hell gatekeeper so G2 is the Heaven gatekeeper
and so G1 is a lier and he's the Hell gatekeeper

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

The criteria for the answer to be true is: one is true and the other is false.

therefore: if the answer for any question is:

YES,YES = LIE
NO,NO = LIE,

YES,NO = TRUTH,
NO,YES = TRUTH,

it does matter what question you ask:

the answer must match to the profile of the gatekeepers:

the hell's gatekeep always disagree "lie/opposite" with the heaven's gatekeeper.

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

Question :
What would the other gatekeeper say if i asked which gate leads to heaven?

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

"Both two doors lead to heaven, right?"

"No"---heaven gatekeeper

"Yes"---hell gatekeeper

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

You haven't solved the problem by this: still don't know which door leads to heaven. Figuring out which one is the lier is quite easy: you could ask one of them: are u a frog :)

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites, but lets do it:

3) If he answers NO and this is TRUE, means that "the hell gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the hell door, so in this case door 1 would be the hell one.

4) If he answers NO and this is FALSE, means that "the heaven gate keeper is the honest one", which means that "the hell gatekeeper is the lier one", but this is a lie, so then he is the lier, and the lier is in the hell door, so also in this case, door 1 would be the hell one.

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

why are u assuming that honest one has to be at heaven gate ?

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites, but lets do it:

3) If he answers NO and this is TRUE, means that "the hell gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the hell door, so in this case door 1 would be the hell one.

4) If he answers NO and this is FALSE, means that "the heaven gate keeper is the honest one", which means that "the hell gatekeeper is the lier one", but this is a lie, so then he is the lier, and the lier is in the hell door, so also in this case, door 1 would be the hell one.

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites, but lets do it:

3) If he answers NO and this is TRUE, means that "the hell gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the hell door, so in this case door 1 would be the hell one.

4) If he answers NO and this is FALSE, means that "the heaven gate keeper is the honest one", which means that "the hell gatekeeper is the lier one", but this is a lie, so then he is the lier, and the lier is in the hell door, so also in this case, door 1 would be the hell one.

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites, but lets do it:

3) If he answers NO and this is TRUE, means that "the hell gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the hell door, so in this case door 1 would be the hell one.

4) If he answers NO and this is FALSE, means that "the heaven gate keeper is the honest one", which means that "the hell gatekeeper is the lier one", but this is a lie, so then he is the lier, and the lier is in the hell door, so also in this case, door 1 would be the hell one.

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites, but lets do it:

3) If he answers NO and this is TRUE, means that "the hell gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the hell door, so in this case door 1 would be the hell one.

4) If he answers NO and this is FALSE, means that "the heaven gate keeper is the honest one", which means that "the hell gatekeeper is the lier one", but this is a lie, so then he is the lier, and the lier is in the hell door, so also in this case, door 1 would be the hell one.

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites, but lets do it:

3) If he answers NO and this is TRUE, means that "the hell gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the hell door, so in this case door 1 would be the hell one.

4) If he answers NO and this is FALSE, means that "the heaven gate keeper is the honest one", which means that "the hell gatekeeper is the lier one", but this is a lie, so then he is the lier, and the lier is in the hell door, so also in this case, door 1 would be the hell one.

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites.

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites

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

e

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means

that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and

understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then

he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the

heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in

this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites

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

First question to g1 to find whether he is honest

Q1: both the gates lead to heaven ?
If g1 says no, he is honest . Then you will ask g2 about gate to heaven and choose gate depending on his answer.(g2 isn't honest here)

If g1 says yes, then g2 is honest. Ask g2 about gate to heaven and go into whichever he points to or into same gate if he says yes or other gate if he says no

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites

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

I would ask to Door 1 gatekeeper the following question: "Is heaven gatekeeper the honest one?", if he answers YES, it means that Door 1 is for heaven, if he answers NO, means that Door 1 is for hell. Lets analyze the 4 possibilities tree and understand why.

1) If he answers YES and this is TRUE, means that "the heaven gate keeper is honest one", and since this is the truth, then he is the honest, and the honest is in the heaven door, so in this case, door 1 would be the heaven one.

2) If he answers YES and this is FALSE, means that "the heaven gate keeper is NOT the honest one", which means that "the heaven gatekeeper is the lier one", but this is a lie, and he is the lier, and the lier is in the heaven door, so also in this case door 1 would be the heaven one.

So then, if he answers YES, no matter if that is TRUE or FALSE, you know that door 1 is the heaven one.
Actually we don't need to analyze the other two possiblilites

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

which of the two gates you are working for?:- whatever they point will lead to heaven.

Analyze:- lets say we are asking liar , he will reply to heaven gate .
lets we are asking to true one he will say true to heaven.

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

"If I asked the other guardian which door leads to heaven, what would he tell me?"

The door that the guardian specfies will be the one that leads to hell, so you know the other one leads to heaven.

This is because if you asked the guardian who tells the truth this question, he will tell the truth in that the other guardian will lie, and show you the door to hell. If you asked the guardian that always lies, he will lie by showing you the door to hell, because the other guardian would show you to door to heaven.

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

"If I asked the other guardian which door leads to heaven, what would he tell me?"

The door that the guardian specfies will be the one that leads to hell, so you know the other one leads to heaven.

This is because if you asked the guardian who tells the truth this question, he will tell the truth in that the other guardian will lie, and show you the door to hell. If you asked the guardian that always lies, he will lie by showing you the door to hell, because the other guardian would show you to door to heaven.

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

Ask "What door would the other one say is the heaven door?"
Case 1: Liar - He would say the door that is not the heaven door as he would lie that the truthteller would say the hell door.
Case 2: Truth - He would say the door that is not the heaven door as he would tell the truth that the liar would lie.
This works because if both were liars then the answer would be easy as you would just go in the opposite door. And this question forces the truth teller to "lie" as he is answering honestly for the liar.
So either way just take the other door.

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

Ask anyone "What will the other person say if i ask him what door is he guarding?"

1. Liar guards Heaven and you ask the truthful guard. His answer will be "Hell". So you know that the other gate leads to heaven.

2. Liar guards the Hell gate and you ask him. His answer will be "Hell". So you know that the other gate leads to heaven.

3. Liar guards the Heaven gate and you ask him. His answer will be "Heaven". So you know this guy guards Heaven.

4. Liar guards Hell and you ask other guard. His answer will be "Heaven". So you know this guy guards Heaven.

So all answers be negated once. :)

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

a= gate to heaven
b = gate to hell
Question to ask :- If I ask the other guy what he will the gate to heaven is ?
Liar Gate keeper's ans = b (Honest man will tell a. our Liar has to lie so he will tell b)
Honest Gate keeper's ans = b (Liar will b . So our honets man will tell the same)

So we have to choose the opposite of what ever answer we get here

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

a= gate to heaven
b = gate to hell
Question to ask : What will other guy tell which gate will go to heaven
Liar Gatekeepers ans = b (honest man will tell a, our guy has to lie. so he will tell b )
Honest Gatekeepers ans = b (Liar will tell b, our guy will tell the smae )

Now you can pick the opposite of whatever ans you get and go to heaven

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

Let's ask the question to both. Which door do you want to enter? Liar also this time tells the truth.

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

I wil ask a gatekeeper am i a boy?i will find out who is liar and who is true one.i will ask another question accordingly and find out the gate to heaven

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

Choose a Door and then as the doorkeeper of that door "Am i alive"?

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

Are both doors lead to heaven and door behind you is heaven?

if YES, NO -> then heaven
if YES, YES-> then hell
if NO, YES -> then heaven
if NO, NO -> then hell

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

The interviewer got this from the movie Labyrinth.

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

But the requirement is: You can only ask one question to one of them in order to find the way to heaven.

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

Yes that was the requirement in the movie as well.

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

You have to ask "Which door leads to hell?" to one gate keeper and "Which door leads to heaven?" to other gate keeper. Both will direct you to the same door. choose the other door to go to Heaven.

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

Hi Ravi - If the Truthful guy is standing in front of the Heavens gate and you ask him "Which door leads to Heaven?" - He will answer This door.
Then - The false guy standing in front of the Hell gate will be asked "Which door leads to Hell?" He will answer the other door - By your logic if you choose the other door - you go to Hell

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

"Both two doors lead to heaven, right?"

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.

### 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.