随笔分类 -  leetcode

Floyd's Cycle Detection Algorithm
摘要:Floyd's Cycle Detection Algorithmhttp://www.siafoo.net/algorithm/10改进版:http://www.siafoo.net/algorithm/11 阅读全文

posted @ 2015-12-01 19:49 OooO_CN 阅读(214) 评论(0) 推荐(0)

用两个stack实现一个队列
摘要:class Queue { stack input, output;public: void push(int x) { input.push(x); } void pop(void) { peek(); output.pop(); ... 阅读全文

posted @ 2015-12-01 17:15 OooO_CN 阅读(326) 评论(0) 推荐(0)

导航