摘要: Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a... 阅读全文
posted @ 2014-12-01 14:54 ElephantKing 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2... 阅读全文
posted @ 2014-12-01 13:49 ElephantKing 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include using namespace std;struct Node{ int startPoint; int endPoint; int len; boo... 阅读全文
posted @ 2014-11-25 15:25 ElephantKing 阅读(123) 评论(3) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std;int susuTable[28]={1};bool isLear(int num){ if(num==2) return true... 阅读全文
posted @ 2014-11-24 21:14 ElephantKing 阅读(362) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std;int susuTable[28]={1};bool isLear(int num){ if(num==2) return true... 阅读全文
posted @ 2014-11-24 20:28 ElephantKing 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std;struct People{ string name;//准考证号 int solutionNum;//做出题目的个数 //vecto... 阅读全文
posted @ 2014-11-24 15:28 ElephantKing 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std;bool changed = false;struct Node{ //int test; string name; string s... 阅读全文
posted @ 2014-11-24 10:45 ElephantKing 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;int main(){ int arr[10000]; int maxNum=0; int maxNow = 0; int startNum=0,endNum = ... 阅读全文
posted @ 2014-11-24 09:57 ElephantKing 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int strToInt(string strA) 7 { 8 9 if(strA=="zero")10 {11 12 ... 阅读全文
posted @ 2014-11-23 17:34 ElephantKing 阅读(196) 评论(2) 推荐(0) 编辑
摘要: #include #include using namespace std;int getO(string str,int &start,char ch){ int count=0; for(;start>str) { //char c = str.at(1); ... 阅读全文
posted @ 2014-11-20 23:02 ElephantKing 阅读(162) 评论(0) 推荐(0) 编辑