Java icon indicating copy to clipboard operation
Java copied to clipboard

N robots collisions Solution

Open NilayBadjatya opened this issue 6 months ago • 2 comments

  • [ 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

NilayBadjatya avatar May 31 '26 15:05 NilayBadjatya

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!

prashantpiyush1111 avatar Jun 02 '26 18:06 prashantpiyush1111

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 @prashantpiyush1111 Thankyou for pointing out the issues will work on these.

NilayBadjatya avatar Jun 03 '26 17:06 NilayBadjatya

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.

github-actions[bot] avatar Jun 18 '26 04:06 github-actions[bot]