Quiz 3:SOLUTIONS
    1. Maintains the same order
    2. reverses the order

    1. Reverses the order
    2. Creates an ordered array in descending order.

  1.      Output 1          3
         Output 2         22     9
         Output 3          8 
    

  2.      Output 1          3     22     45
         Output 2          15
    

    1. 2 1 3
    2. 5 10

    1. 2 and 4
    2. 1 and 3

    1. 55 12 9 8 3 2
    2. 50 40 30 20 20 10
  3. (8a+b2)/(c+d)+e

  4. aa*4b*+c/dd*+

  5. Output 1 9 18 22
    Output 2 8
    

  6. Print(): 25 50 30 40 60
    Print(): 35 50 30 40 60
    Print(): 35 50 60 40
    

  7. 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.

    1. SQ
    2. aceektuu

    1. Order of deletion: 4, 6, 2, 1, 5, 3
    2. Order of deletion: 6, 3, 1, 2, 4, 5