Question: i need it more likely to java please, thanks b) write pseudo code that will determine which value in the stack is the smallest and
i need it more likely to java please, thanks

b) write pseudo code that will determine which value in the stack is the smallest and move that value to the top of the stack while otherwise leaving the remainder of the stack in its original order. Thus if the stack1 contains the double values: (bottom 4 2 8 3 6 5 top) then a call to move SmallestToTop(stack1) would leave stack1 as follows: (bottom 4 8 36 5 2 top)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
