-
- Maintains the same order
- reverses the order
-
- Reverses the order
- Creates an ordered array in descending order.
-
Output 1 3
Output 2 22 9
Output 3 8
-
Output 1 3 22 45
Output 2 15
-
- 2 1 3
- 5 10
-
- 2 and 4
- 1 and 3
-
- 55 12 9 8 3 2
- 50 40 30 20 20 10
- (8a+b2)/(c+d)+e
- aa*4b*+c/dd*+
-
Output 1 9 18 22
Output 2 8
Print(): 25 50 30 40 60
Print(): 35 50 30 40 60
Print(): 35 50 60 40
- Find the first occurence of item in stack S and move it to the top of the stack. If item is not in S, F returns with S empty.
- SQ
- aceektuu
-
- Order of deletion: 4, 6, 2, 1, 5, 3
- Order of deletion: 6, 3, 1, 2, 4, 5