開始使用免費開始

使用 quicksort 排序數字

在這段影片中,你學到 quicksort(快速排序)是非常高效的排序演算法。

給定下列數字清單,使用 quicksort 將它們排序時,會依照什麼序列進行?

A schematic representation of a list with unordered elements.

回顧這個演算法: Graphical execution of quicksort.

本練習屬於課程

Data Structures and Algorithms in Python

檢視課程

動手互動練習

將理論付諸實踐,立即體驗我們的互動練習

開始練習