POTD- 08/04/2024 | Optimal Strategy For A Game | Problem of the Day | GeeksforGeeks

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

КОМЕНТАРІ • 8

  • @karthiksundaram544
    @karthiksundaram544 6 місяців тому +1

  • @kalyanbabuakula2662
    @kalyanbabuakula2662 6 місяців тому

    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

    • @kalyanbabuakula2662
      @kalyanbabuakula2662 6 місяців тому +1

      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

    • @yash.dwivedi
      @yash.dwivedi 6 місяців тому

      yes