摘要: leetcode Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stac... 阅读全文
posted @ 2014-11-25 11:56 伊藤诚 阅读(163) 评论(0) 推荐(0)
摘要: javaimport java.util.Arrays;import java.util.Random;public class Solution { public void demo(int n) { if (n 0 && mid value) { ... 阅读全文
posted @ 2014-11-25 11:51 伊藤诚 阅读(116) 评论(0) 推荐(0)