問題詳情

五、在下列之雙向鏈結串列(doubly linked list)的插入及刪除副程式中,依序填入空白位置,下圖為串列之示意圖。(20 分)list-insert(L, x){next[x] ← head[L]if head[L]≠NILthen (1) ;head[L] ← x(2) ;}list-delete(L, x){if prev[x]≠NILthen (3) ;else head[L] ← next[x]if next[x]≠NILthen (4) ;}
1

參考答案

答案:C
難度:簡單0.814538
統計:A(391),B(24),C(2073),D(57),E(0) #
個人:尚未作答書單:修辭-[婉曲]、無人問津

內容推薦