例如標準版的selection sort 是non-stable; 而insertion sort 容易寫成stable。 (Q: 寫程式時, 那裡要注意?) Insertion sort 的time complexity: 1+2+3...+n 屬於O ...
確定! 回上一頁