1. Stack with a min Functionhistorical

    Define a stack data structure and implement a min function in this type that can obtain the minimum element contained in the stack, with O(1) time complexity.

  2. Stack Push and Pop Sequenceshistorical

    Given two integer sequences, the first sequence represents the push order of a stack. Determine whether the second sequence could be a pop order of that stack.

  3. Implement a Queue with Two Stackshistorical

    Use two stacks to implement a queue and complete the queue's Push and Pop operations. The elements in the queue are of type int.