Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement quick sort algorithm in Java #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xSHSH
Copy link

@0xSHSH 0xSHSH commented Oct 18, 2024

This commit adds a new QuickSort class to the project, providing a basic implementation of the quick sort algorithm. The code includes a quickSort method that takes an integer array and its low and high indices as input, and sorts the array in ascending order using the quick sort algorithm.

Key features:

Quick sort algorithm: Efficiently sorts an array using the divide-and-conquer paradigm.
Partitioning: Employs a partitioning strategy to divide the array into two subarrays and recursively sorts them.
Clear and concise code: The code is well-formatted and easy to understand.
Example usage: The main method demonstrates how to use the quickSort method with different input arrays.

This commit adds a new QuickSort class to the project, providing a basic implementation of the quick sort algorithm. The code includes a quickSort method that takes an integer array and its low and high indices as input, and sorts the array in ascending order using the quick sort algorithm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant