DevJourney · code I wrote while learning

README.md

472 B

Write a C program to implement the Quick Sort algorithm

Test Case 1: Random Order

Before Sorting: 10 7 8 9 1 5

After Sorting: 1 5 7 8 9 10

Test Case 2: All Duplicates

Before Sorting: 20 20 20 20 20

After Sorting: 20 20 20 20 20

Test Case 3: Reverse Sorted

Before Sorting: 50 40 30 20 10

After Sorting: 10 20 30 40 50

Test Case 4: Random With Duplicates

Before Sorting: 3 6 8 10 1 2 1

After Sorting: 1 1 2 3 6 8 10