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

ความคิดเห็น • 32

  • @GeeksforGeeksVideos
    @GeeksforGeeksVideos  วันที่ผ่านมา +5

    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.

    • @DURGAPRASADK24
      @DURGAPRASADK24 วันที่ผ่านมา

      why truth telling gatekeeper tell path to hell when you questioned for heaven

  • @shivamdashore6864
    @shivamdashore6864 9 ชั่วโมงที่ผ่านมา +5

    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.

  • @sumitraj5529
    @sumitraj5529 วันที่ผ่านมา +14

    Ab bhi samajh nhi aaya

  • @nepal-nexus7
    @nepal-nexus7 วันที่ผ่านมา +1

    i would ask 1 times 1 to both of them

  • @tamildevineseries3157
    @tamildevineseries3157 วันที่ผ่านมา +1

    More simply expl pls

  • @unknown07711
    @unknown07711 วันที่ผ่านมา +1

    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😂😂

    • @GeeksforGeeksVideos
      @GeeksforGeeksVideos  วันที่ผ่านมา

      You can only ask one question, thats the whole point

  • @K.jayasurya-gk9gl
    @K.jayasurya-gk9gl 15 ชั่วโมงที่ผ่านมา

    simple solution : ask any factual question

  • @amitavasengupta5580
    @amitavasengupta5580 วันที่ผ่านมา

    Thank you this will be helpful afterlife 💀 gfg is zindagi ke saath bhi zindagi ke baad bhi

  • @dominicrosariodominicrosar8255
    @dominicrosariodominicrosar8255 วันที่ผ่านมา

    Watching

  • @zaid_khan_4850
    @zaid_khan_4850 12 ชั่วโมงที่ผ่านมา

    mam you are very cute ❤❤

  • @piyush3836
    @piyush3836 วันที่ผ่านมา

    But I know this question from my childhood and read in bakelal comics and other books 30 years back early 90s

  • @bigyadav
    @bigyadav วันที่ผ่านมา +1

    I will ask what is 2+2 if he says 4 that's heaven if not it's hell 😅

    • @GeeksforGeeksVideos
      @GeeksforGeeksVideos  วันที่ผ่านมา

      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

    • @silent_voyager0
      @silent_voyager0 วันที่ผ่านมา

      ​@@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?

    • @GeeksforGeeksVideos
      @GeeksforGeeksVideos  วันที่ผ่านมา

      You can just ask 1 question to both of them , so this won't work, the only solution is in the video​@@silent_voyager0

    • @silent_voyager0
      @silent_voyager0 วันที่ผ่านมา

      @@GeeksforGeeksVideos ohh ok thx

  • @adex618
    @adex618 วันที่ผ่านมา

    Bohot hi zyada dumb question hai since the hell gatekeeper is always supposed to lie.

    • @GeeksforGeeksVideos
      @GeeksforGeeksVideos  วันที่ผ่านมา

      Yeah but how do you know who is the gate keeper of hell?

  • @ajayamgoth581
    @ajayamgoth581 วันที่ผ่านมา

    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

    • @GeeksforGeeksVideos
      @GeeksforGeeksVideos  วันที่ผ่านมา

      But you don't know the answer to anything

    • @bigyadav
      @bigyadav วันที่ผ่านมา

      ​@@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 😅

  • @codewitham22
    @codewitham22 11 ชั่วโมงที่ผ่านมา

    Hold my andi mandi sandi 😂

  • @RinaSamanta-lb6yj
    @RinaSamanta-lb6yj วันที่ผ่านมา

    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.....😢😢😅😅😅

  • @user-yj9kn1dj1i
    @user-yj9kn1dj1i 10 ชั่วโมงที่ผ่านมา

    Ye question akbar birbal se utha hain