Why this is giving only two cases right?

Hello @dhruvilcodes could you please share the link of the spoj problem.

Hackerblocks (codingblocks.com)

@dhruvilcodes what is the range that you are taking?

0 to INT_MAX sir, I am getting only two cases right

Hello @dhruvilcodes you range is not correct.
the range shoulf be from the largest board in the array to the sum of all the boards.

Coding Blocks IDE i changed the range still only 3 cases are right

Hello @dhruvilcodes check now:


if you still have any doubt you can ask here:
Happy Learning!!

1 Like