Skip to content

feat: add quick sort algorithm

Yun.Long requested to merge wip/add-quick-sort-algorithm into main

Summary: Adds Quick Sort algorithm to the Python sorting algorithms collection. Changes: 1. sort.py: Implemented quick_sort() function with O(n log n) average time complexity 2. test_sort.py: Added quick_sort to SORT_FUNCTIONS and ALGO_INFO dictionary 3. main.py: Included quick_sort in the demo output. Testing: All existing tests pass (40/40). Quick sort correctly handles edge cases. Algorithm metadata includes time/space complexity and stability info.

Merge request reports