Arrays & Linked Lists

Answer & solution
Official answer: B
Method
Enqueue sets new.next=head and head=new, also initializing tail if previously empty. Tail removal must change the predecessor’s next pointer to null and make it the new tail. A tail pointer identifies the node to remove but not its predecessor, because links point only forward. Scanning from head is unavoidable with only these stored pointers. Reversing the operation orientation would allow constant-time deletion at head, but that is not this question’s data structure.
Solution
Inserting at the head updates a constant number of pointers, Θ(1). Removing the tail requires locating its predecessor, which a singly linked list with only head/tail pointers does not directly supply; traversing n nodes costsΘ(n) in the worst case. Thus B.