码迷,mamicode.com
首页 > 其他好文
LeetCode Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of...
分类:其他好文   时间:2015-04-12 14:49:27    阅读次数:137
redhad安装gcc问题---解决依赖问题
在安装gcc时需要cpp和cloog-ppl 但是在安装cpp的时候需要这个依赖:  libmpfr.so.1()(64bit) is needed by cpp-4.4.6-3.el6.x86_64 安装cloog-ppl的时候需要这2个依赖: libppl.so.7()(64bit) is needed by cloog-ppl-0.15.7-1.2.el6.x86_64      ...
分类:其他好文   时间:2015-04-12 14:50:35    阅读次数:222
GCJ 2015Q(Standing Ovation-贪心)
Problem It's opening night at the opera, and your friend is the prima donna (the lead female singer). You will not be in the audience, but you want to make sure she receives a standing ovation -- w...
分类:其他好文   时间:2015-04-12 14:48:24    阅读次数:200
单链表(不带头结点)
#include #include typedef int ElemType; typedef struct Node { ElemType data; struct Node *next; }LNode,*LinkList; void InitList(LinkList &l); void Create_head(LinkList &l); void Create_rear(Lin...
分类:其他好文   时间:2015-04-12 14:48:41    阅读次数:168
使用多重循环打印6阶杨辉三角
public static void main(String[] args) { int[][] a = new int[6][]; //a[0][0] = 1; for(int i=0;i<6;i++){ a[i]=new int[i+1]; } for(int i = 0 ...
分类:其他好文   时间:2015-04-12 14:49:38    阅读次数:162
yeoman运行grunt serve 提示错误
今天在使用 yeoman 的时候,当我运行 grunt serve 命令的时候,出现如下提示:1、Error: Cannot find module 'load-grunt-tasks'$ grunt serveLoading "Gruntfile.js" tasks...ERROR>> Error...
分类:其他好文   时间:2015-04-12 14:48:48    阅读次数:325
关于字符串中取相同的字符问题(小学题)
分类:其他好文   时间:2015-04-12 14:47:37    阅读次数:81
一名菜鸟coder的学习过程
菜鸟我如今大三了就读一所名不见经传的学校,大一浑浑噩噩的度过一学期,大二央求我家人总算获得一台3K的电脑,于那时起我发现我不能再这样下去了,常想起我爸对我说的话“初中毕业还有高中能够念,高中毕业还有大学念,大学毕业看你还能逃避什么”于是别人玩游戏我看书,别人泡妞我ctrl+c/ctrl+v复制代.....
分类:其他好文   时间:2015-04-12 14:49:10    阅读次数:152
使用二重循环和break语句,找出2~100内所有的质数
public static void main(String[] args) { int m = 0; for(int i = 2 ; i < 100 ; i++){ for(int j = 2;j <= Math.sqrt(i)+1 ;j++){ m=i % j; if(m =...
分类:其他好文   时间:2015-04-12 14:48:28    阅读次数:86
scanf函数和printf函数
C程序实现输出和输入的主要是printf函数 和 scanf函数,这两个函数是格式输入输出格式声明由%和格式字符组成 如%d,%f格式字符:d格式符:用来输出一个有符号的十进制整数c格式符:用来输出一个字符s格式符:用来输出一个字符串f格式符:用来输出实数(包括单精度,双精度,长双精度) 隐含输出六...
分类:其他好文   时间:2015-04-12 14:46:55    阅读次数:108
升级 树莓派的gcc/g++编译器到4.8
首先,更新你的树莓派(避免编译出来版本不对导致不能insert)sudo apt-get updatesudo apt-get upgradesudo apt-get dist-upgradesudo rpi-update更新gcc和g++:sudo apt-get install gcc-4.8 ...
分类:其他好文   时间:2015-04-12 14:46:27    阅读次数:109
ST表
比如维护一个最大值,注意初始化的log[0] = -1 Σ( ° △ °|||)︴逢写必错有木有! 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define REP(i, s, n) for(int i = s; i ...
分类:其他好文   时间:2015-04-12 14:48:02    阅读次数:186
世界上最小计算机M3 仅1立方毫米,智能尘埃来了!
创造历史之举在过去长达十多年的时间里,密歇根州大学电气与计算机科学系的David Blaauw团队一直在做一件事情,那就是打造体积只有1立方毫米的微型计算机Michigan Micro Mote(即M³),这是一次创造历史的壮举。这是M3与一枚硬币的对比:这可能是全球最小的自动化计算机设备,而随着I...
分类:其他好文   时间:2015-04-12 14:45:45    阅读次数:132
黑盒技术生成测试用例几种常见方法
因为实验还没做,所以无法写实验报告。在这里我将简述几种常见的黑盒测试方法。黑盒测试,又称功能测试或者数据驱动测试。是把测试对象看作一个黑盒子。利用黑盒测试法进行动态测试时,需要测试软件产品的功能。不需要测试软件产品的内部结构和处理过程。采用黑盒技术设计的测试用例方法有:等价类划分方法边界值分析错误推...
分类:其他好文   时间:2015-04-12 14:46:30    阅读次数:137
服务器端git
git仓库与裸仓库创建仓库git init 本地仓库,包含.git目录和工作目录[wyq@localhost blog.git]$ git init重新初始化现存的 Git 版本库于 /home/wyq/workspace/blog.git/.git/[wyq@localhost blog.git]...
分类:其他好文   时间:2015-04-12 14:45:30    阅读次数:125
翻牌回朔法解题
#include #include using namespace std;class card{ private: int a[5][5];//原题 int b[5][5];//解决方案 int c[5][5];/...
分类:其他好文   时间:2015-04-12 14:45:41    阅读次数:139
四月收拾心情开始行动(ps2015计划)
三月份终于利用业余时间完成JS的学习,迎来四月的大解放。于是清明节给自己定下一个很幼稚的目标——三天之内找到女朋友,虽然第三天终于约了一个女孩出去了,但是结果也并没有达到预期。反思一下自己,才发现理想与现实的差距,在这个男多女少的社会,想找到一个理想的女孩有多么不容易。而且,工作现在也并没有进行的顺...
分类:其他好文   时间:2015-04-12 14:45:58    阅读次数:118
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!