could not understand what wrong with my code
please help!
problem: BOXGAM97 OCT Lunchtime
solution: CodeChef: Practical coding for everyone
could not understand what wrong with my code
please help!
problem: BOXGAM97 OCT Lunchtime
solution: CodeChef: Practical coding for everyone
Am i missing something? Whatβs the *
next to max1
?
its max1 multiplied by -1
in ide my code works fine but in codechef it gives NZEC
You have out of index error when max element is in first place.
Input test case:
1
2 3 1
2 1
thanks for your help