G Giao Linh New member Sep 16, 2021 #1 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)
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 Trịnh Quốc Lâm New member Sep 16, 2021 #2 Answer: C Explanation: The time complexity of reversing a stack is mathematically found to be O (N) where N is the input. Upvote 0 Downvote
Answer: C Explanation: The time complexity of reversing a stack is mathematically found to be O (N) where N is the input.