- Java algorithms practice project.
- Java version: 25
- Build tool: Gradle.
- Source code:
src/main/java/com/podopryhora/algoworkout. - Tests:
src/test/java/com/podopryhora/algoworkout(JUnit 5).
- Keep code simple and readable; prefer clear naming over cleverness.
- Enforce Java 25 syntax and features.
- Use ASCII only unless a file already contains Unicode.
- Add short, meaningful comments at each key step in the algorithm.
- Put algorithm/data-structure descriptions at class level Javadoc.
- Always include time and space complexity in method-level comments.
- Method Javadoc should stick to standard tags (
@param,@return) unless there is a specific reason to add more.
- Run tests with
./gradlew testwhen changes affect behavior. - Typical focus: search/algorithm edge cases and null/empty inputs.
- Use parameterized tests when practical.
- Avoid destructive git commands.
- Prefer iterative solutions when recursion could risk stack depth.
- Keep Javadoc concise and consistent across similar classes.