recategorized by
1,630 views
2 votes
2 votes
What is time complexity to evaluate prefix and postfix expression ? as per me it should be O(n) as  atmost 2 pop operation perform and 1 push operation
recategorized by

1 Answer

0 votes
0 votes

Related questions

1 votes
1 votes
1 answer
2
jugnu1337 asked Apr 20, 2022
473 views
what is T.C. of this code: for(i=1;i<=n;i++) for(j=1;j<=n;j=j+i) x=x+1;
1 votes
1 votes
1 answer
3
0 votes
0 votes
1 answer
4
iarnav asked Jun 12, 2018
872 views
Given an sorted array in descending order, what will be the time complexity to delete the minimum element from this array?