mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-02-02 19:46:13 +08:00
758df7dcc3cf8c34bd37618b2c1d2cad75bc8a51
SortUtils.swap by skipping operations for equal indices (#5266)
* 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>
The Algorithms - Java
You can run and edit the algorithms, or contribute to them using Gitpod.io (a free online development environment) with a single click.
All algorithms are implemented in Java (for educational purposes)
These implementations are intended for learning purposes. As such, they may be less efficient than the Java standard library.
Contribution Guidelines
Please read our Contribution Guidelines before you contribute to this project.
Algorithms
Our directory has the full list of applications.
Description
All Algorithms implemented in Java
algorithmalgorithm-challengesalgorithmsalgorithms-datastructuresdata-structureshacktoberfestjavasearchsortsorting-algorithms
Readme
MIT
175 MiB
Languages
Java
100%