上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 46 下一页
摘要: 推荐博客 :https://blog.csdn.net/wconvey/article/details/7827188 在第二遍看了树状数组后, 感觉有了更深的认识,既然是树状数组,从名字来看,就是像树的一个数组,没错,就是一个普通的数组,我们把他假定成为一棵树。 用 C1 表示 A1 的和 用 C 阅读全文
posted @ 2018-01-18 10:31 楼主好菜啊 阅读(156) 评论(0) 推荐(0)
摘要: Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some positive integer. A 阅读全文
posted @ 2018-01-18 09:54 楼主好菜啊 阅读(237) 评论(0) 推荐(0)
摘要: typedef struct node { int data; struct node *lchild, *rchild; }bitnode, *bitree; bool search(bitree T, int x, bitree f, bitree *p){ // 查找应该插入的位置 if (!T) { *p = f; return ... 阅读全文
posted @ 2018-01-17 10:32 楼主好菜啊 阅读(212) 评论(0) 推荐(0)
摘要: A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtree 阅读全文
posted @ 2018-01-17 10:27 楼主好菜啊 阅读(239) 评论(0) 推荐(0)
摘要: Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is 阅读全文
posted @ 2018-01-15 11:04 楼主好菜啊 阅读(165) 评论(0) 推荐(0)
摘要: 1. The cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bessi 阅读全文
posted @ 2018-01-02 16:48 楼主好菜啊 阅读(314) 评论(0) 推荐(0)
摘要: A permutation of size n is an array of size n such that each integer from 1 to n occurs exactly once in this array. An inversion in a permutation p is 阅读全文
posted @ 2017-12-29 12:23 楼主好菜啊 阅读(521) 评论(0) 推荐(0)
摘要: STL 中的徐不着字符串匹配的库函数,用来寻找第一次目标字符串第一次在母串中出现的位置,并返回第一次出现位置的指针。 输出结果为 23456 阅读全文
posted @ 2017-12-26 12:22 楼主好菜啊 阅读(175) 评论(0) 推荐(0)
摘要: 比赛链接 :https://www.nowcoder.com/acm/contest/63#question A . 题目描述 小杰是学院中公认的计算机大神,有一天小杰受邀去机房帮忙接网线,他三下五除二地就帮忙完成了。可是善于思考地他仍意有未尽,他觉得这次的线路有许多奇妙的性质,故来请教你。 机房有 阅读全文
posted @ 2017-12-24 10:17 楼主好菜啊 阅读(571) 评论(0) 推荐(0)
摘要: map 的遍历 代码示例 判断一个元素是否出现过 1 . count 当 x 出现过,函数的返回值为 1 , 当没有出现过,函数的返回值为 0 。 2 . find (); 若要查找的元素,则返回所要查找的元素对应的在容器中的位置,若不存在,则返回 test.end( ) 。 删除元素 lower_ 阅读全文
posted @ 2017-12-18 18:16 楼主好菜啊 阅读(206) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 46 下一页