Skip to content

Conversation

Madipadige-ManishKumar
Copy link
Contributor

No description provided.

Updated your code to handle edge cases
Copy link
Owner

@IamBisrutPyne IamBisrutPyne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

* @param high Ending index
*/
public static void quickSort(int[] arr, int low, int high) {
if (low < high) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a line to handle edge-case: null array

@IamBisrutPyne IamBisrutPyne merged commit 365fe87 into IamBisrutPyne:main Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants