question :from biggest
my solution:https://ide.codingblocks.com/s/391012
what’s wrong in my code?
Array problems(From Biggest)
Have updated your code here, Now it’s passing all test cases.
but why we are doing a+b>b+a not a>b.
See for this test case
1
2
42 4
Your code Will give an output of: 424
But Expected output is: 442
So this is what we are doing that we are checking if 42+4 = 424 is greater then 4+42 = 442 or not.
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.