https://ide.codingblocks.com/s/52263
Help Ramu
Testcase1 :-wrong answer
Hey shubham, check your code for this case
input:
1
100 100 8 100
3 5
7 94 12
100 1 47 0 42
your code’s output :
100
but the expected output is:
16
Hey Shubham, there is just a small mistake update your print statement as
cout<< min(sum+sum1, arr[3])<<endl;
as you are supposed to print the minimum of these two.