|
|
|
|
|
|
h****a 发帖数: 70 | 1 Consider a singly linked list, the time of which of the following operations
depends on the length of the list? (Exactly one answer is correct.)
1)Delete the last element of the list.
2)Delete the first element of the list.
3)Add an element after the last element of the list.
4)Add an element before the first element of the list.
5)Interchange the first two elements of the list. | m*********2 发帖数: 701 | 2 1
assuming there is a tail pointer
operations
【在 h****a 的大作中提到】 : Consider a singly linked list, the time of which of the following operations : depends on the length of the list? (Exactly one answer is correct.) : 1)Delete the last element of the list. : 2)Delete the first element of the list. : 3)Add an element after the last element of the list. : 4)Add an element before the first element of the list. : 5)Interchange the first two elements of the list.
|
|
|
|
|
|
|