Asked by Rob

Using the operations push(E obj),
peek(), pop(), empty()
give a Java implementation of the method
// Reverses the elements in the stack
//and returns the result.
// The stack passed as an argument to
//reverse() will be
// destroyed upon return.

public static StackInt reverse (StackInt stack)

What is the time complexity of the method?

Answers

Answered by Maylee
what is the answer to Miami and potawttomi


There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions