* Update GrahamScan.java
improved the Javadoc comments, clarified some methods in the Point class, and corrected some text.
* Minor adjustment to GrahamScan.java
* revised GrahamScan.java
* Update-2 GrahamScan.java
* clang format GrahamScan.java
* reverted GrahamScan.java
* minor updates.java
* minor updates
* Spc.java
* clang format
---------
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
* Update Average.java
- Made the constructor throw an UnsupportedOperationException to prevent instantiation, making it explicit that this is a utility class.
- Added a private validateInput method to handle validation, reducing code duplication and improving readability.
- Consistent exception messages and handling for both methods.
- Improved comments to be more descriptive and follow JavaDoc conventions.
- Enhanced code readability and maintained consistent formatting.
* Minor Update Average.java
* Change To Average.java
* Mnr Average.java
* Update_Average.java
* Fix Average.java
1. throw new IllegalArgumentException("Numbers array cannot be empty or null");
2. int --> double
* fix2.java
return(double)..
* refactor: PigeonholeSort
* checkstyle: fix formatting
* checkstyle: make class final
* refactor: changing negative numbers check first, fix typo, adding one more test for negative numbers
---------
Co-authored-by: Alex Klymenko <alx@alx.com>
Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com>
* refactor: cleanup CycleSort. Adding test for it. Simplify code
* refactor: CycleSortTest to directory file
* tests: Adding more various tests cases for testing sorting algorithms
* checkstyle: imports and whitespaces fixes
* tests: removing boolean sorting
* checkstyle: fix "eedBraces: 'if' construct must use '{}'s"
* checkstyle: reduce "Too many static imports"
---------
Co-authored-by: Alex Klymenko <alx@alx.com>
* cleanup: BeadSort and BeadSortTest, adding javadocs
* checkstyle: fix formatting
* checkstyle: fix import order
* cleanup: improving code readability
* cleanup: improving code readability using enum to represent beads
* checkstyle: fix enum formatting
* fix: enum should be compared using ==, according to maven bugs finder plugin
---------
Co-authored-by: Alex Klymenko <alx@alx.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* refactor: improving naming, adding standard test
* style: remove `BubbleSortRecursive` from pmd exclude list
* docs: typo fix
---------
Co-authored-by: Alex Klymenko <alx@alx.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* Refactor: adding check to swap method in SortUtils
* Checkstyle: fix formatting
* Checkstyle: fix formatting, and redundant braces
* fix: adding flipped tests, removed messages from tests
* checkstyle: fix indent
* style: mark `temp` as `final`
* tests: remove test case with empty array
Such calls should be excluded.
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* Refactor: Adding test common approach, adding javadocs, renaming variables
* Refactor: Fix failed build, when generated test case for recursion is too big. To avoid stackoverflow
* Checkstyle: Adding newline to end of class
* refactor: simplify assign minIndex in recursiveSelectionSort, and improving SelectionSort
* checkstyle: adding newline to SelectionSort
---------
Co-authored-by: Alex Klymenko <alx@alx.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* Refactoring and code improving for StrandSort
* Fix java checkstyle
* Fix "Each variable declaration must be in its own statement"
* Fix "uses integer based for loops to iterate over a List"
---------
Co-authored-by: alx <alx@alx.com>
* Refactoring and code improving for OddEvenSort, changing it according to SortAlgorithm approach, also applying SortUtils
* Fix checkstyle
* Remove redundant main, remove redundant tests.
---------
Co-authored-by: alx <alx@alx.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* Refactoring BinaryInsertionSort according to common SortAlgorithm approach
* Formatting has been fixed
* Refactoring tests for BinaryInsertionSort according to SortingAlgorithmTest
* Removing redundant tests and improving variable readability
---------
Co-authored-by: alx <alx@alx.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>