What is the time complexity of the push and pop operations in a stack implemented with a linked list?

DSA + System Design - 12

Quiz
•
Computers
•
Professional Development
•
Medium
Puneet Kansal
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
O(n)
O(log n)
O(1)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given an infix expression: A+B∗(C−D)/E what is the equivalent postfix expression?
AB+CD−∗E/
ABCD−∗+E/
AB+CD∗−E/
ABCD−∗E/+
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many stacks are required to implement a queue using the stack data structure?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not an application of stacks?
Function call management
Infix to postfix conversion
Managing a list of items
Balancing symbols
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a stack implemented using an array, what is the time complexity of accessing the i-th element from the top of the stack?
O(1)
O(i)
O(n-i)
O(n)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following conditions indicate that a stack is empty?
top == stack.length
top == stack.length - 1
top == 0
top == -1
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the context of recursion, the stack is used to store which of the following?
Static variables
Global variables
Local variables and return addresses
Register values
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
JF UIT 2022 - Game 2

Quiz
•
Professional Development
10 questions
Structure Data Review

Quiz
•
University - Professi...
10 questions
Quiz String

Quiz
•
Professional Development
8 questions
Elastic Essentials Quiz

Quiz
•
Professional Development
10 questions
FitTalks - MongoDB

Quiz
•
Professional Development
10 questions
QUiz e

Quiz
•
Professional Development
15 questions
Data Analytics vs. Data Science vs. Data Engineering

Quiz
•
Professional Development
13 questions
DSA 2

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade