Vulkan

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 27 下一页

2014年4月11日

Cracking The Coding Interview 3.6

摘要: // Write a program to sort a stack in ascending order. You should not make any assumptions about how the stack is implemented. The following are the o... 阅读全文

posted @ 2014-04-11 09:57 Vulkan 阅读(134) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 3.5

摘要: //Implement a MyQueue class which implements a queue using two stacks.#include #includeusing namespace std;class MyQueue{public: stack data,buffer; My... 阅读全文

posted @ 2014-04-11 09:54 Vulkan 阅读(184) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview3.4 暂存

摘要: 暂存 阅读全文

posted @ 2014-04-11 09:52 Vulkan 阅读(82) 评论(0) 推荐(0) 编辑

2014年4月10日

Cracking The Coding Interview3.3

摘要: //Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when th... 阅读全文

posted @ 2014-04-10 15:17 Vulkan 阅读(136) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 3.2

摘要: //How would you design a stack which, in addition to push and pop, also has a function min which returns the minimum element? Push, pop and min should... 阅读全文

posted @ 2014-04-10 11:39 Vulkan 阅读(178) 评论(0) 推荐(0) 编辑

2014年4月9日

Cracking The Coding Interview 2.5

摘要: 这题的思想来自于http://hawstein.com/posts/2.5.html,重新实现了一下用hash来记录循环的起点//Given a circular linked list, implement an algorithm which returns node at the beginn... 阅读全文

posted @ 2014-04-09 13:33 Vulkan 阅读(115) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview2.4

摘要: 删除前面的linklist,使用node来表示链表// You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in rever... 阅读全文

posted @ 2014-04-09 13:31 Vulkan 阅读(172) 评论(0) 推荐(0) 编辑

2014年4月8日

Cracking The Coding Interview2.3

摘要: #include #include using namespace std;class linklist{private: class node { public: node(){} string data; node * next; }; int size;public: node *he... 阅读全文

posted @ 2014-04-08 22:09 Vulkan 阅读(133) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview 2.2

摘要: #include #include using namespace std;class linklist{private: class node { public: node(){} string data; node * next; }; node *head; int size;publi... 阅读全文

posted @ 2014-04-08 21:24 Vulkan 阅读(112) 评论(0) 推荐(0) 编辑

Cracking The Coding Interview2.1 暂存

摘要: 暂存 阅读全文

posted @ 2014-04-08 21:23 Vulkan 阅读(91) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 27 下一页

导航