(a) (4 points) Implement a queue using a singly-linked list. The ENQUEUE and DEQ
ID: 3634750 • Letter: #
Question
(a) (4 points) Implement a queue using a singly-linked list. The ENQUEUEand DEQUEUE should take O(1) (i.e., constant) time.
(b) (4 points) Implement a stack using a singly-linked list. The PUSH and
POP should take O(1) (i.e., constant) time.
(c) (4 points) What is the difference between a binary search tree and a
heap?