Unable to get any approach need some hints
Aggressive Cows
@Divya_321 https://www.youtube.com/watch?v=TC6snf6KPdE
Please refer this video. It is nicely explained here.
Hope this helps
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.
code : https://pastebin.com/1JjcmmMU
doubt : this is my code to aggresive cows which I made after understanding from the video than also I am getting anomalous behaviour of cout due to which my code is failng please help out , contradition arises at line no 20 and 27 where in line 20 I am changing value of start and i , but during next iteration they are assinged 0 anomalously " cout<<" β<<start<< β*β<<i<<endl;β please help me out
code : https://pastebin.com/1JjcmmMU
doubt : this is my code to aggresive cows which I made after understanding from the video than also I am getting anomalous behaviour of cout due to which my code is failng please help out , contradition arises at line no 20 and 27 where in line 20 I am changing value of start and i , but during next iteration they are assinged 0 anomalously " cout<<" β<<start<< β*β<<i<<endl;β please help me out
can you please ans this I have ASKED 14 DAYS BEFORE
I am unable to get your issue.
Refer this if this implementation can help.
Or else please post it as a new doubt elaborating your problem well.
In simple words debug my code .whatβs wrong with it, according to me it should work but isnβt working
also explain me how minimum distance between two cows is 0 as cows >= 2 and cows <= n so in cows = n
that is no. of barn so minimum distance will be distance between two closest barn and that will be starting point search space how it is 0 explain it @pratyush63