Please help me to pass the test cases

Hello @anshulgurawalia check now:


you cant sort array of boards and the starting is the board with the maximum size.

i think this is the same becz if we sort array and give the last index value to lb(lower_bound) then its automatic the highest value from the array

this code is not passing all test cases

@anshulgurawalia check now:


you cant sort because it is mentioed in the question that you can t disturb the sequence of the array it should be continuous as it is given in the question.

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.