A-D | Leetcode Weekly Contest 414 Editorials | Maximum Number of Moves to Kill All Pawns | Abhinav

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

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

  • @AbhinavAwasthi
    @AbhinavAwasthi  หลายเดือนก่อน +2

    Join Whatsapp Channel: whatsapp.com/channel/0029Va55Idf1NCrU16kHOt3j

  • @devotee108.
    @devotee108. 13 วันที่ผ่านมา +1

    Bhaiya HBTU kaisa h

  • @Piyush-yp2po
    @Piyush-yp2po หลายเดือนก่อน

    expl for 2nd was mind-blowing, just 2-3 mins into listening and got the complete idea

    • @amitjain3216
      @amitjain3216 หลายเดือนก่อน

      I still didn't understand after watching the whole video, can you explain why we start from p = start[0] and if (p+m)

  • @ShivamMishra-fo1wx
    @ShivamMishra-fo1wx หลายเดือนก่อน +1

    sir If input is [0,5,9] and d=2 then if we check for mid=1 according to code it is possible that 1 can be the difference and its also true that we will get difference larger than 1 as well but sir in reality there cannot be two number chosen that can give difference=1 sir please explain this why we are marking it as possible value

  • @raisanjeeb42
    @raisanjeeb42 หลายเดือนก่อน +1

    Bhaiya, For Q4, Can you please explain why turn is not used for memoization ? How how it is redundant ?

    • @urvishpatel1609
      @urvishpatel1609 29 วันที่ผ่านมา

      cause whenever mask is same, it will be the turn of the same person always.
      consider 3 paws, 000(all pawns are up) means alice turns, then [001, 100, 010] means 1 paws is down and it must be the turn of bob only and so on, hence whenever we have curr and mask same, turn must be same (either alice or bob based on pawns up/down).
      hence functional dependency is [mask -> turn] if mask is same then turn must be of same person but not reverse.
      [In some sence number of bits in mask is taking care of 3rd dimesion in itself. and if the mask is exact same as of any previous call then person must be same.]

  • @sanasainath7758
    @sanasainath7758 หลายเดือนก่อน +2

    waiting for ur video from morning bro

  • @sudhanshumaurya6932
    @sudhanshumaurya6932 หลายเดือนก่อน

    how can I join this meet

  • @amarnathtripathy4350
    @amarnathtripathy4350 หลายเดือนก่อน

    sir kal ka?
    kab ayega