Visit Array Positions to Maximize Score | Leetcode 2786 | Recursion | BiWeekly 109

preview_player
Показать описание
2786. Visit Array Positions to Maximize Score
Problem Link :
Solution :
Рекомендации по теме
Комментарии
Автор

bhaiya one doubt, we define our base case as smallest or largest valid test case but here you are defining (index== nums.size())
which is when index go out of bound, why we are not defining about when (index== n-1) .
Please clarify.

-harshitsingh
visit shbcf.ru