GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com

import java.util.Stack; public class MinStack { Stack mMinStack; Stack mStack; public MinStack() { mStack = new Stack(); mMinStack = new Stack(); } public void push(int x) { mStack.push(x); // 注意这里要判空 if (mMinStack.isEmpty() || x < mMinStack.peek()) { mMinStack.push(x); } else { mMinStack.push(mMinStack.peek()); } } public void pop() { mStack.pop(); mMinStack.pop(); } public int top() { return mStack.peek(); } public int getMin() { return mMinStack.peek(); } }
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.