Alice and bob(dynamic proggramig)

at that all elements equal to ak + 1 and ak - 1 also must be deleted from the sequence. That step brings ak points to the player…

sir in this question we remove arr[i],arr[i]-1,arr[i]+1 or we remove index element arr[i],arr[i-1],arr[i+1]

we remove arr[i], and all the elements equal to arr[i]-1 or arr[i]+1 in the array…

thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

@Einsteve7974
I see you have reopened this doubt
How can I help you ?

but in the question mentioned ak-1 not a[k]-1