N robots collisions Solution
- [ x] I have read CONTRIBUTING.md.
- [ x] This pull request is all my own work -- I have not plagiarized it.
- [ x] All filenames are in PascalCase.
- [ x] All functions and variable names follow Java naming conventions.
- [ x] All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
- [ x] All new algorithms include a corresponding test class that validates their functionality.
- [ x] All new code is formatted with
clang-format -i --style=file path/to/your/file.java
Hi @NilayBadjatya! The build is failing due to these issues:
1. Missing imports (Build failure) Please add at the top of the file: import java.util.ArrayList; import java.util.List;
2. Clang format issues Please add spaces:
for(→for (if(→if (
3. Missing test file
Please add NRobotsCollisionTest.java as required by contributing guidelines.
4. Return type bug
int division will give wrong answer for odd distances. Please change return type to double and return (double) minTime / 2.
Fix these and all CI checks should pass!
Hi @NilayBadjatya! The build is failing due to these issues:
1. Missing imports (Build failure) Please add at the top of the file: import java.util.ArrayList; import java.util.List;
2. Clang format issues Please add spaces:
for(→for (if(→if (3. Missing test file Please add
NRobotsCollisionTest.javaas required by contributing guidelines.4. Return type bug
intdivision will give wrong answer for odd distances. Please change return type todoubleand return(double) minTime / 2.Fix these and all CI checks should pass!
Hi @prashantpiyush1111 Thankyou for pointing out the issues will work on these.
This pull request has been automatically closed because its workflows or checks failed and it has been inactive for more than 14 days. Please fix the workflows and reopen if you'd like to continue. Merging from main/master alone does not count as activity.