Aggressive cows

i use same code that sir do in cow aggressive video but even not gettilng test case pass

Hey @sahudilip138 you forgot to sort the stalls


for(int i=0;i<n;i++){
		cin>>stall[i];
	}
Sort(stall,stall+n);//update this

Do this and all your test cases will get passed.

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.