Can You Solve This Amazon Interview Question? | Puzzles for Software Engineers Part-4 🔍
ฝัง
- เผยแพร่เมื่อ 18 ก.ย. 2024
- 🧩 Can You Solve This Amazon Interview Question? | Puzzles for Software Engineers Part-4 🔍
Think you have what it takes to crack a Amazon interview? In Part-4 of Puzzles for Software Engineers, we challenge you with a brain-teasing question that could be asked in one of the toughest interviews in the world! 🤯
Explore Premium LIVE and Online Courses :
practice.geeks...
Follow us for more fun, knowledge and resources:
📱 Download GeeksforGeeks' Official App: geeksforgeeksa...
💬 Twitter- / geeksforgeeks
🧑💼 LinkedIn- / geeksforgeeks
📷 Instagram- www.instagram....
💌 Telegram- t.me/s/geeksfo...
Also, Subscribe if you haven't already! :)
#GeeksforGeeks #Learntocode #GFG
Tags: Amazon interview questions, Amazon interview tips, Amazon job interview, Amazon interview process, Amazon interview experience, Amazon interview preparation, Amazon interview questions and answers, tech interview tips, software engineering interview, coding interview Amazon, Amazon interview secrets
Hashtags: #AmazonInterview #InterviewTips #TechInterview #CodingInterview #JobInterview #CareerAdvice #AmazonJobs #AmazonCareers #SoftwareEngineering #TechCareers #InterviewPrep #InterviewSkills #InterviewSuccess #JobSearch
Solution:-
If I were to ask the other gatekeeper which gate leads to heaven, what would they say?”
Here’s how it works:
If you ask the truthful gatekeeper, they would truthfully tell you what the lying gatekeeper would say. So, they would point you towards the gate to hell, because they know the lying gatekeeper would falsely point to hell as well.
If you ask the lying gatekeeper, they would lie about what the truthful gatekeeper would say. Therefore, they would also point you towards the gate to hell, because they know the truthful gatekeeper would truthfully point to heaven.
In both scenarios, regardless of who you ask, you’ll receive the same answer: the gate to hell. Hence, it would be best if you chose the other gate, which is the gate to heaven.
why truth telling gatekeeper tell path to hell when you questioned for heaven
I tell them my name is Shivam and ask, 'Is my name really Shivam?' If he says yes, then the gate behind him is surely heaven.
You can only say one thing
Ab bhi samajh nhi aaya
Check the pinned comment
i would ask 1 times 1 to both of them
Ok and then what?
More simply expl pls
Check the pinned comment!!
Ask the same qus to both the gatekeeper.. think like binary.. total 4 cases are possible but only one when both will be 1,1.. binary representation of negative gatekeeper is always oppo. Of positive gatekeeper..
Dn it's correct logic😂😂
You can only ask one question, thats the whole point
simple solution : ask any factual question
Thank you this will be helpful afterlife 💀 gfg is zindagi ke saath bhi zindagi ke baad bhi
Too good 😂😂
Watching
mam you are very cute ❤❤
But I know this question from my childhood and read in bakelal comics and other books 30 years back early 90s
Questions never go out of trend
I will ask what is 2+2 if he says 4 that's heaven if not it's hell 😅
Ok now you have found who the liar is but that doesn't make you know where the heavens door is... You can only ask one question
@@GeeksforGeeksVideosmaybe he is trying to say that he will ask on gaurd 2+2 and other guard what is the door to heaven if first guard gives right ans and you go to opposite door to which second guard will guide to and in other case if first guard gives wrong and then just simply follow the gate second one told you. Will this work?
You can just ask 1 question to both of them , so this won't work, the only solution is in the video@@silent_voyager0
@@GeeksforGeeksVideos ohh ok thx
Bohot hi zyada dumb question hai since the hell gatekeeper is always supposed to lie.
Yeah but how do you know who is the gate keeper of hell?
Just ask the question which you know the real answer and then ask that question you will find out who is telling the truth or false
But you don't know the answer to anything
@@GeeksforGeeksVideosaree just ask him what is 2+2
If he says 4 that's the heaven if not that that's the gate of hell 😅
Hold my andi mandi sandi 😂
In this condition 2 gate keepe tell me ... Other get keeper tell you hell is heaven .... Because ... The true get keeper tell true other gate keeper is told hell is heaven.... False gatekeeper teel
false information that other gate keeper tell you hell is heaven.....😢😢😅😅😅
Ye question akbar birbal se utha hain