Podcast
Questions and Answers
What is the time complexity of inserting an element at the end of an array-based list?
What is the time complexity of inserting an element at the end of an array-based list?
- O(n)
- O(1) (correct)
- O(n^2)
- O(log n)
Which data structure uses Last In First Out (LIFO) principle?
Which data structure uses Last In First Out (LIFO) principle?
- Queue
- Stack (correct)
- Linked List
- Binary Tree
Which data structure organizes data in a hierarchy with a root node, parent nodes, and child nodes?
Which data structure organizes data in a hierarchy with a root node, parent nodes, and child nodes?
- Stack
- Tree (correct)
- Linked List
- Queue
Flashcards are hidden until you start studying