[問題] bubble sort
看板Prob_Solve (計算數學 Problem Solving)作者PTT007 (鍵盤007)時間11年前 (2013/12/12 02:31)推噓4(4推 0噓 10→)留言14則, 4人參與討論串1/1
陣列內容:23 41 66 20 2 90 9 34 19 40 99
Show the state of the list when current is first set equal to the fifth
item in the bubble sort algorithm.
答案:
2 9 19 20 23 41 66 34 40 90 99
看不太懂題目的意思
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 編輯: PTT007 來自: 114.43.136.20 (12/12 02:32)
推
12/12 04:54, , 1F
12/12 04:54, 1F
推
12/12 12:05, , 2F
12/12 12:05, 2F
推
12/12 16:20, , 3F
12/12 16:20, 3F
→
12/12 16:20, , 4F
12/12 16:20, 4F
→
12/12 16:20, , 5F
12/12 16:20, 5F
→
12/12 16:21, , 6F
12/12 16:21, 6F
→
12/12 16:21, , 7F
12/12 16:21, 7F
→
12/12 16:22, , 8F
12/12 16:22, 8F
→
12/12 16:48, , 9F
12/12 16:48, 9F
推
12/13 02:01, , 10F
12/13 02:01, 10F
→
12/13 02:01, , 11F
12/13 02:01, 11F
→
12/13 02:02, , 12F
12/13 02:02, 12F
→
12/13 02:03, , 13F
12/13 02:03, 13F
→
12/13 02:03, , 14F
12/13 02:03, 14F
Prob_Solve 近期熱門文章
PTT數位生活區 即時熱門文章