Stacks and Queues
1. Which of these best describes an array in C/C++?
2. What is the worst-case time complexity of insertion at an arbitrary position in an array?
3. Which of the following is an invalid one-dimensional array declaration in C?
4. In a singly-linked list, each node contains a minimum of two fields. If one field is the data field to store the data, then the second field is _______.
5. In a singly linked list without a tail pointer, what is the asymptotic time complexity to add a tail element and to find an element?
6. Why do we need pointers in a linked list but not in an array?