Where is my code wrong I have done exactly same as told in video?
Optimal Game strategy 1
Its also going wrong in testcase 2 and 3
@dsingh200021
Consider test case:
4
8 15 3 7
Expected Output:
22
Your Output:
23
Check where your code is going wrong.
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.