data structures lab viva questions
node contains data and a reference to the next node, enabling dynamic memory allocation but with slower access times compared to arrays. What is a stack, and how is it different from a queue? A stack is a data structure that follows the Last In First Out (LIFO) principle, where the last add