I’m unable to understand why my solution gives WA. Can anyone help me? Thanks
@abhinavverma how? If max(i.e. x) is 11, I can fill with
1 0
or
0 1
right? Still satisfying y=1, isn’t it?
Your Code Fails on Following input:
1
3 5 1 3
Expected Output:
15
Your Output:
30
1 Like
1
1 4 4 8
Try this
1 Like