Function ispossible

function ispossible for arr=10 20 30 70
and students =2 and curr_min=60 is giving true but it should be false

Hello @deepakjumani09,

Yes, it won’t.
A modification is required in the code.
Check the following code:

Thanks for pointing out the mistake.

Give a like if you are satisfied.

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.