This RIDDLE Got Me a Software Engineer Job at Microsoft

Поділитися
Вставка
  • Опубліковано 2 лис 2024

КОМЕНТАРІ • 68

  • @vrensul
    @vrensul Рік тому

    Earned yourself a new subscriber today. Faced those layoffs myself and 'survived'. Know that anxiety. Take care of health as you have nothing without that.

  • @moepray1602
    @moepray1602 2 роки тому +11

    The second I see your name on my notification bar I stop everything that I am doing ( pretending that I am debugging something😅) and watch your video! I really enjoy your videos. keep up the good work!

    • @namanhkapur
      @namanhkapur  2 роки тому +2

      comments like this is why i do what i do, thanks for watching!

    • @Technoph1le
      @Technoph1le 2 роки тому

      Same here

    • @masternobody1896
      @masternobody1896 2 роки тому

      @@namanhkapur fang job is hard as f

  • @cflo530
    @cflo530 2 роки тому +8

    Nice vid as always. I recently landed a position as a design engineer and at the end of the technical part of the interview they said they were going to throw me a curveball with a brain teaser.
    They asked me the water jug riddle from Die Hard. I had never come across it before, and stumbling to the solution I was sure I was no longer a candidate. I think what helped me in the end was bouncing ideas off the interviewers.
    Overall it was a great experience! Keep up the good work man!

    • @namanhkapur
      @namanhkapur  2 роки тому +2

      woah that’s a cool riddle!

  • @kevinmitnick1301
    @kevinmitnick1301 2 роки тому +2

    Soon gonna hit 100k bro. You're killing it 🔥.

    • @namanhkapur
      @namanhkapur  2 роки тому +2

      thanks for always supporting

  • @snowinbaghdad
    @snowinbaghdad 2 роки тому +14

    One important detail is left out, that each prisoner is told the result of their coin flip before they guess. Without that detail, it is not possible to solve.

    • @namanhkapur
      @namanhkapur  2 роки тому +3

      hopefully that was implied since the warden goes to each prisoner and flips the coin in front of them

    • @niladridas3506
      @niladridas3506 2 роки тому

      Yes, it was an important detail

    • @ashfaqjuna
      @ashfaqjuna 2 роки тому +1

      And one day the warden gets annoyed and throws the coin away and does what he likes

  • @MohamedAhmed-tt2nz
    @MohamedAhmed-tt2nz 2 роки тому +1

    Great video, really understood your logical thinking skills, 100k Subs soon !!

  • @firebattgaming83
    @firebattgaming83 2 роки тому +2

    Brain- teaser part was amazing ☺️

  • @VickkyMama
    @VickkyMama 2 роки тому +1

    I'm trying to get a job at Microsoft as a Software Engineer but I'm terrified of the technical interviews. I'm a fresh MSc graduate.

  • @sid6576
    @sid6576 2 роки тому +3

    you just convinced me to take the game theory course bro

  • @-Engineering01-
    @-Engineering01- 2 роки тому +3

    We know nearly %99 of us are never gonna be able to get a job at Microsoft but continuing to watching your videos for a reason that I dunno. Lol good on you.

    • @namanhkapur
      @namanhkapur  2 роки тому +1

      appreciate the support!

    • @ShortTravelVlogs4u
      @ShortTravelVlogs4u 2 роки тому

      @@namanhkapur you should not always ask for support rather than support these guys to get the job

  • @Zainalii._
    @Zainalii._ 2 роки тому +7

    You're really good at explaining stuff tbh, if you ever get time you should start teaching how to code on your YT channel tbh.

    • @namanhkapur
      @namanhkapur  2 роки тому +1

      thanks for supporting as always!

  • @kaustubhpandit8637
    @kaustubhpandit8637 2 роки тому +5

    The interview was amazing as you described....I kinda tried to imagine the situation....btw love your content.....

  • @preschoolPT
    @preschoolPT 2 роки тому +4

    this explanation is flawed. because p1 and p2 are guessing. it's hard to explain over text but it doesn't work,
    You're assuming p1 can guess, but he won't know if he gets it right. if his initial guess is wrong. then p2 is at a 50/50 chance. if you get what I mean. in scenarios 1 and 2 p1 guesses head first. in scenarios 3 and 4 he guesses tails first. you see the problem. what if he guesses like heads first but the flips come out tails? then p2 is at a 50/50 chance

  • @user-oc6ky2tk5o
    @user-oc6ky2tk5o 2 роки тому

    I had to watch this twice to understand lool, It's really interesting how this problem even has a solution. I gave up immediately when I thought there was no soln. sadge...

  • @MadMax-fs3cy
    @MadMax-fs3cy 2 роки тому +1

    Thank you bhaiyya, I just graduated from high school, gonna go to a college and study CSE! Your videos will definitely help me towards my goals.. Also, please make a video on the other question, if both of em had to be right..

    • @namanhkapur
      @namanhkapur  2 роки тому

      hint: if both would have to be right, would any of the strategies in this video work?

  • @akebu6
    @akebu6 2 роки тому

    Your story telling is always amazing. From the problem, I thought I wasn't going to get it then I thought it over and probability came into mind. Logical think sure is important.
    Awesome video

    • @namanhkapur
      @namanhkapur  2 роки тому

      glad you were able to work through it!

  • @tightcamper
    @tightcamper 2 роки тому

    I used brain teasers all the time because the candidate cannot plan or be coached for it. I usually thought of something on the fly, often there was no correct answer. Plenty of my candidates just clammed up and went dumb. They didn't even try.

  • @youu11
    @youu11 2 роки тому

    I practice coding 4 hours everyday , but I barely learn to make a basic tiktok game in python . Sometimes it's feels like pointless but when those feelings comes , I watch your video to get motivated .

  • @makoo9055
    @makoo9055 2 роки тому

    I still can't understand why :
    if 1 prisoner chooses tails and the other was chooses right ( since even if one of them gets it right they live)
    both will live right ?

  • @asavtripple6
    @asavtripple6 2 роки тому

    thank you brother just found your channel today even tho i have seen you on recommended and never really bothered pressed today i decided to and im thankfull your channel contains nothing but value kudos to you

  • @CHAI_tan_ya
    @CHAI_tan_ya 2 роки тому

    What I came up with is : P1 tells P2 to say 'heads' today and P1 will say 'tails' and next day they will flip their guesses. So, P1 now will guess 'heads' and P2 will guess 'tails' and next day guesses will flip again and so on ......

  • @Kranonym
    @Kranonym 2 роки тому

    i paused the video at 2:35 to tell you my guess, i would say they both choose tails since the head on a coin is slightly heavier meaning there are a higher percentage of tails coming up. i will edit this comment after i watched through the video
    edit: okay the explanation was super clear and i totally get it, my guess was not even close, mine is still like a 60% if we calculate the weight differentials, but his method is a 100% survival.

  • @tiger.649
    @tiger.649 10 місяців тому

    Hello, Mene suna hai ki Jio Creative Labs hire kr rha hai koi unstop creative hackathon ke through. Please ap ek video bnake samjha do kya me part le sakta hu kya

  • @NickKravitz
    @NickKravitz 2 роки тому

    int tempVal, place = 0;
    for (int i = 0;i < nums.length;i++) {
    tempVal = nums[place];
    nums[place] = nums[(place - k) % nums.length];
    place = (place + k) % nums.length;
    } works only when k and nums.length are relatively prime.

  • @raghava117
    @raghava117 2 роки тому +1

    Can anyone please answer the 2nd question?

  • @joshuapaulhawthorne
    @joshuapaulhawthorne 2 роки тому

    If they always guessed right that would eliminate the need for guessing. I thought it was implied that they had to guess before they flipped.

    • @namanhkapur
      @namanhkapur  2 роки тому +1

      they can guess after their coin is flipped, but remember they are trying to guess the other prisoner’s flip

  • @mattiaspirandelli
    @mattiaspirandelli 2 роки тому

    Hi, in one of your videos you mentioned devpost and hackathons, could you please tell me more about them ?
    In schools in Italy nobody knows much about it and on the internet I am finding confusing information.
    I love your videos and your contents 👍​😃​

  • @umadutta3304
    @umadutta3304 2 роки тому

    Well yeah writing stuffs really helps

  • @Roderictusp
    @Roderictusp 2 роки тому

    If one prisioner guesses what they flip and only one needs to guess then it is trivial. Isn´t it?

  • @DendrocnideMoroides
    @DendrocnideMoroides 2 роки тому

    this was very easy most logic puzzles are much harder

    • @namanhkapur
      @namanhkapur  2 роки тому

      i thought it was an interesting one

    • @DendrocnideMoroides
      @DendrocnideMoroides 2 роки тому

      @@namanhkapur the answer was unexpected that they could live for ever but it was also easy to solve and I think when both have to be correct there is no statrgy to live for ever but you can do better than random luck so guess either the same coin as you got every time or the opposite coin as you got every time

  • @willislutimba9840
    @willislutimba9840 2 роки тому

    Hey anyway a person can reach out personally to you?

  • @seek_peace_777
    @seek_peace_777 2 роки тому

    if they ask me the shrink you and put you in the blender question and I laugh on the spot, is the interview over?

  • @anmolsuman5866
    @anmolsuman5866 2 роки тому

    Sir u are basically from India or from
    America?

  • @aniselahi8272
    @aniselahi8272 Рік тому

    Truth table Discrete math .

  • @JunaidKhan-mx6sc
    @JunaidKhan-mx6sc 2 роки тому

    I'm from Hyderabad and a BSc graduate fresher. Can u suggest me a remote jobs, that we can do from here😊. I want to work in good companies of san francisco either they may be start-up's or mnc. But, need to do bcse, as of know it is important to me. It would be Great and very helpful to guys like me, if u have reacted to this. Hope, u will see this and thanks 😊.

  • @MannysTechWorld
    @MannysTechWorld 2 роки тому

    I guessed the answer right without the same detail😂😂😂😂

  • @T0rdis
    @T0rdis 2 роки тому

    hmm, this reminds me of game theory...

  • @muskansaifi4191
    @muskansaifi4191 2 роки тому

    U r graduation collage 🔥🙃🙃😁

  • @anubhavrathore47
    @anubhavrathore47 2 роки тому

    Are you an iitian Or something?!

  • @zack8849
    @zack8849 2 роки тому

    ᑭᖇOᗰOᔕᗰ

  • @ramm8509
    @ramm8509 2 роки тому

    Bhaiya what's your insta id can i get 😅