这个是缩进问题,重新将行前面的空格删掉,换位tab
分类:
编程语言 时间:
2014-05-12 16:35:23
阅读次数:
383
Link:http://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked
list, reverse the nodes of a linked listkat a time and return its modifie...
分类:
其他好文 时间:
2014-05-05 22:46:42
阅读次数:
456
我猜~~~很多一开始学习python的同学们一定也遇到了这个问题,在安装setuptools时候会遇到UnicodeDecodeError的错误。我学的是3.x,但是周围的人都说2.7好,╮(╯▽╰)╭一开始我也不在乎,但是工作需要使用mongodb,但是它的包暂时只有2.7,我点点点点。无奈我也就...
分类:
编程语言 时间:
2014-05-02 16:24:03
阅读次数:
410
#include #include float get_cpu_clock_speed(){ FILE
*fp; char buffer[1024]; size_t bytes_read; char *match; float clock_speed;
fp=fo...
分类:
其他好文 时间:
2014-05-02 14:20:39
阅读次数:
392
算法:
#include
using namespace std;
#define MAXSIZE 100
void calNext(const char *T,int *next);//T为模式串,next为预判数组
int kmp_match(const char *S,const char *T);//在主串S中寻找模式串T,如果找到返回其位置,否则返回-1。位置从0开始
void ...
分类:
其他好文 时间:
2014-05-02 02:25:40
阅读次数:
280
MongoDB常用命令1.启动命令 mongod 启动数据库进程 --dbpath 制定数据库的目录
--port 制定数据库的端口,默认是27017 --bind_ip 绑定IP --directoryperdb 为每个db创建一个独立子目录
--logpath 制定日志存放目录 -...
分类:
数据库 时间:
2014-05-01 21:09:19
阅读次数:
451
Crossing River
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 10212
Accepted: 3855
Description
A group of N people wishes to go across a river with only one...
分类:
其他好文 时间:
2014-04-30 22:21:38
阅读次数:
212
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。如下所示: <LinearLayout
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-04-29 13:14:20
阅读次数:
391