-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggressive Cows Problem #1035
Aggressive Cows Problem #1035
Conversation
Add image only in readme..dont seperately add into folder |
Ok only this change us required |
put cpp file and readme into a separate folder and create PR ..either Your CPP file and readme will be scattered. You need to follow particular guidelines for your README , please follow |
Listen We are not allowed to merge PR taking 10+ commits ...so kindly keep an eye on this point |
i made necessary changes but cannot upload properly now |
so i deleted files and now want to add changes but not allowing can you help me |
Whats the issue you are facing tell in discord LearnCPP group |
ok |
Your readme and cpp will not be together how You created this PR ...previously I said that make a folder of your topic name and in the folder add cpp and readme...by this 2 will be together |
check #1085 |
Actually this is totally an new folder and as per recommendations given for problem statement we have to make a folder of level-2 and inside there readme and solution should be there so i kept it that way before |
then create level-2/Cow.cpp and readme file |
|
I made like this only before with image in that folder just say me changes later |
Wait You will be informed |
For this if my commit count increases then it will not be accepted.. if so should i close this and make another pr in another branch and do it? |
Create a new PULL REQUEST with less number of commits in a fresh manner Your Code Directory will be along with file name please pay attention and README changes inside You need to follow particular guidelines for your README , please follow |
Related Issue
Proposed Changes
Checklist
This is code for a problem known as aggressive cows. The statement is:
There is a new barn with N stalls and C cows. The stalls are located on a straight line at positions x1,….,xN (0 <= xi <= 1,000,000,000). We want to assign the cows to the stalls, such that the minimum distance between any two of them is as large as possible. What is the largest minimum distance?
Explanation of the problem statement with approach discussion and time complexity is added in readme file. This is a level 2 problem which was not present in repo and hence gives understanding of binary search related problems.
issue link: #802
Output Screenshots
Readme screenshot
Code:
output: