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
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.]
Join Whatsapp Channel: whatsapp.com/channel/0029Va55Idf1NCrU16kHOt3j
Bhaiya HBTU kaisa h
expl for 2nd was mind-blowing, just 2-3 mins into listening and got the complete idea
I still didn't understand after watching the whole video, can you explain why we start from p = start[0] and if (p+m)
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
Bhaiya, For Q4, Can you please explain why turn is not used for memoization ? How how it is redundant ?
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.]
waiting for ur video from morning bro
how can I join this meet
sir kal ka?
kab ayega