Vidyalelo
Data Structure · Q98

Stacks in Data Structures

Programming · Data Structure · question 98

Q98

What is the time complexity of reversing a word using stack algorithm?

A.
O (N log N)
B.
O (N2)
C.
O (N)
Answer
D.
O (M log N)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board