Quicksort with 3-way partition

前端 未结 7 2076
野趣味
野趣味 2021-01-31 15:44

What is QuickSort with a 3-way partition?

7条回答
  •  南旧
    南旧 (楼主)
    2021-01-31 16:24

    3 way quick sort basically partitions the array in 3 parts. First part is lesser than the pivot , Second part is equal to pivot and third part is greater than pivot.It is linear-time partition algorithm. This partition is similar to Dutch National Flag problem.

提交回复
热议问题