問題詳情

3.(20%)Given a doubly linked list which has a header field for the dummy head node and a trailer field for the dummy tail node. Suppose that each node has a next field for the next node and a prev field for the previous node. Please complete the following task with proper pseudo code.
a.What are the conditions for testing if the list has exactly 1 and 2 data nodes respectively?

參考答案

答案:D
難度:適中0.690476
統計:A(10),B(2),C(112),D(319),E(0)

內容推薦