Skip to content

huggiebao2/hw3_QuickSort_Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

hw3_QuickSort_Algorithm 作業說明

說明

Quick Sort 演算法的部分,放在 quick_sort() 函式內。

作業要求要運行的範例整數陣列則是放在 main() 中,透過在 main() 中呼叫 quick_sort() 來為範例整數陣列進行排序。

使用範例

啟動檔案,會輸出:

(base) D:\git\hw3_QuickSort_Algorithm>python QuickSort.py
[33, 25, 8, 13, 54, 119, 3, 84, 67, 41]
[33, 25, 8, 13, 3, 119, 54, 84, 67, 41]
[3, 25, 8, 13, 33, 119, 54, 84, 67, 41]
[3, 25, 8, 13, 33, 119, 54, 84, 67, 41]
[3, 13, 8, 25, 33, 119, 54, 84, 67, 41]
[3, 8, 13, 25, 33, 119, 54, 84, 67, 41]
[3, 8, 13, 25, 33, 41, 54, 84, 67, 119]
[3, 8, 13, 25, 33, 41, 54, 84, 67, 119]
[3, 8, 13, 25, 33, 41, 54, 84, 67, 119]
[3, 8, 13, 25, 33, 41, 54, 67, 84, 119]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages