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

i need it more likely to java please, thanks b) write pseudo

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!