https://ide.codingblocks.com/s/225123 i am getting runtime error.{runtime error (SIGSEGV)}
Runtime error in Aggresive cow problem
@itismohiton you have taken the size of stalls array as 1000 max, take it something around 100005.
also use long long int instead of int.
Also calculate mid as :- mid = start + (end-start)/2;
We have to do these changes as the constraints are large here.
Do these changes and all other things are fine.
problem solved. Thank you sir
1 Like