InterviewSolution
Saved Bookmarks
| 1. |
The time complexity of converting a prefix notation to infix notation is _________(a) O(n) where n is the length of the equation(b) O(n) where n is number of operands(c) O(1)(d) O(logn) where n is length of the equationQuestion is taken from Application of Stacks in section Application of Stacks of Data Structures & Algorithms IThe question was posed to me in a national level competition. |
|
Answer» The correct ANSWER is (a) O(n) where n is the LENGTH of the equation |
|