Data Structures and Algorithm Review Questions
Data Structures and Algorithm Review Questions
OTHER QUESTIONS
Qu. 1. (Pg 2)
iv) Write an algorithm for adding an element into a stack (Pg 16)
v) Using array, transform the algorithm into a C program.
1
vi) Write an algorithm for deleting an element into a stack (Pg 17)
vii) Using array, transform the algorithm into a C program.
i) Define queue.
ii) Write an algorithm for adding an item to a queue.
iii) Write an algorithm for deleting an item from a queue.
iv) Define linked list. (pgs 26-27).
v) What are the advantages and shortfalls of single linked list.