上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: Number of 1 BitsTotal Accepted:9192Total Submissions:24556QuestionSolutionWrite a function that takes an unsigned integer and returns the number of ’1... 阅读全文
posted @ 2015-03-18 20:13 Thereisnospon 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Pascal's TriangleTotal Accepted:38612Total Submissions:126553QuestionSolutionGivennumRows, generate the firstnumRowsof Pascal's triangle.For example, ... 阅读全文
posted @ 2015-03-18 19:43 Thereisnospon 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Excel Sheet Column TitleTotal Accepted:17772Total Submissions:100508QuestionSolutionGiven a positive integer, return its corresponding column title as... 阅读全文
posted @ 2015-03-18 19:15 Thereisnospon 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #includeusing std::cin;using std::cout;using std::endl;namespace mynode{ typedef int type; struct Node { type data; ... 阅读全文
posted @ 2015-03-10 22:00 Thereisnospon 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #includeusing std::cin;using std::cout;using std::endl;namespace mystack2{ typedef int type; struct node { type data; node*next... 阅读全文
posted @ 2015-03-10 21:59 Thereisnospon 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #includeusing std::cin;using std::cout;using std::endl;typedef int type;namespace myqueue{ class queue { enum{q_size=100}; struct ... 阅读全文
posted @ 2015-03-09 12:51 Thereisnospon 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #include 的函数c++中应该是#include c中应该是#include 以下为字符函数库中常用的函数:函数名称返回值isalnum()如果参数是字母数字,即字母或数字,该函数返回trueisalpha()如果参数是字母,该函数返回真isblank()如果参数是空格或水平制表符,该函数返回... 阅读全文
posted @ 2015-02-08 12:20 Thereisnospon 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include#include#includetypedef struct node{ int data; struct node *lchild,*rchild,*next;}hufnode;typedef hufnode *linkhuf;linkhuf insert(linkhu... 阅读全文
posted @ 2015-02-06 19:25 Thereisnospon 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #include#includetypedef int type;typedef struct node{ type key; struct node *lchild,*rchild;}bsnode;typedef bsnode *bstree;//非递归查找x的位置,通过二级指针返回其... 阅读全文
posted @ 2015-02-06 17:49 Thereisnospon 阅读(119) 评论(0) 推荐(0) 编辑
摘要: //深度优先遍历图返回连通分量数-int dfstraverse(LinkedGraph q){ int i,count=0; for(i=0;iCASE[%d]:\n",count); count++; dfs(q,i); } ... 阅读全文
posted @ 2015-02-05 10:56 Thereisnospon 阅读(470) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页