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

Giao Linh

New member
What is the time complexity of reversing a word using stack algorithm?
A. O (N log N)
B. O (N$^{2}$)
C. O (N)
D. O (M log N)
 

Tìm kiếm

Back
Top