Hello sir one doubt .. here in the question it is mentioned that both players will be playing optimally which means that both players want to get maximum possible score.. then why in that case for the second player it should be minimum in the recursive calls
Ok got it if we are returning the minimum value from the player2 which means he is playing optimally to get the maximum value but there after we are returning the minimum value.. is this the correct thought process behind this
❤
Thanks
Can u teach me regression analysis
Hello sir one doubt .. here in the question it is mentioned that both players will be playing optimally which means that both players want to get maximum possible score.. then why in that case for the second player it should be minimum in the recursive calls
Ok got it if we are returning the minimum value from the player2 which means he is playing optimally to get the maximum value but there after we are returning the minimum value.. is this the correct thought process behind this
yes