Package algs21

Class MyDeck

java.lang.Object
algs21.MyDeck

class MyDeck extends Object
The Deck class has the following API:
 MyDeck (int N)                 // create a randomized Deck of size N
 int size ()                    // return the size of N
 int ops ()                     // return the number of operations performed on this Deck
 boolean topGreaterThanNext ()  // compare top two items
 void swapTopTwo ()             // swap top two itens
 void moveTopToBottom ()        // move top item to bottom
 void isSorted ()               // check if isSorted (throws exception if not)