What is the time complexity of an infix to postfix conversion algorithm?

Q & ACategory: Data StructureWhat is the time complexity of an infix to postfix conversion algorithm?
Admin Staff asked 5 years ago

What is the time complexity of an infix to postfix conversion algorithm?
a) O(N log N)
b) O(N)
c) O(N2)
d) O(M log N)

1 Answers
Admin Staff answered 5 years ago

b) O(N)