Podcast
Questions and Answers
Which data structure is mentioned in the text?
Which data structure is mentioned in the text?
- Linked List
- Binary Tree
- Stack (correct)
- Queue
What is the main principle of a stack?
What is the main principle of a stack?
- Random Access
- First-In-First-Out (FIFO)
- Last-In-First-Out (LIFO) (correct)
- Sequential Access
What is the time complexity for inserting an element into a stack?
What is the time complexity for inserting an element into a stack?
- O(n)
- O(n^2)
- O(1) (correct)
- O(log n)