Min Stack (JAVA實現)

題目:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) – Push element x onto stack. pop() – Removes the element on top of the stack. top() – Get t
相關文章
相關標籤/搜索