摘要:
public class StackByQueue { private LinkedList<String> queue1; private LinkedList<String> queue2; public StackByQueue() { queue1 = new LinkedList<Stri 阅读全文
posted @ 2016-02-29 19:06
笨狗毒毒毒
阅读(174)
评论(0)
推荐(0)
摘要:
public class QueueByStack { private Stack<Integer> stack1; private Stack<Integer> stack2; public QueueByStack() { // TODO Auto-generated constructor s 阅读全文
posted @ 2016-02-29 19:05
笨狗毒毒毒
阅读(136)
评论(0)
推荐(0)
摘要:
public class MinNumberInRotatedArray { public int getMinNumInRotatedArray(int[] array) { if(array == null) { return -1; } int leftIndex = 0; int right 阅读全文
posted @ 2016-02-29 19:04
笨狗毒毒毒
阅读(361)
评论(0)
推荐(0)
浙公网安备 33010602011771号