Description— The Brother of mine, the Head of Monastic Order wants to know tomorrow about the results long-term researches. He wants to see neither mo...
分类:
其他好文 时间:
2014-07-31 12:10:56
阅读次数:
371
Just corner case..class Solution {public: ListNode *reverseBetween(ListNode *head, int m, int n) { if(m == n) return head; ListNode *...
分类:
其他好文 时间:
2014-07-31 09:34:05
阅读次数:
245
初始文件格式:svid=26,frm_cnt=1,max_freq=233,max_chip=90,max_mag = 1085svid=26,frm_cnt=2,max_freq=261,max_chip=3996,max_mag = 10fcawk,sed相关命令:sed 's/=/ /g;s/...
分类:
其他好文 时间:
2014-07-30 23:20:15
阅读次数:
240
#define T Stack_T
typedef struct T *T;
struct T {
int count;
struct elem {
void *x;
struct elem *link;
} *head;
}
const T stk //指针常量, const修饰struct T *。地址不能变。
const struct T *stk //指向常量的指...
分类:
其他好文 时间:
2014-07-30 20:56:14
阅读次数:
187
1 package leetcode; 2 3 public class DetectCycle { 4 public ListNode detectCycle(ListNode head) { 5 ListNode s=head; 6 ListNode ...
分类:
其他好文 时间:
2014-07-30 20:20:04
阅读次数:
243
1 package leetcode; 2 3 public class ReOrderList { 4 public void reorderList(ListNode head) { 5 if(head==null||head.next==null||head.ne...
分类:
其他好文 时间:
2014-07-30 20:05:54
阅读次数:
243
今天收到报警邮件,提示网站502 bad gateway,输入网站url后果然无法打开:登录服务器查看nginx进程正常:查看fastcGI进程已经停止运行了:问题找到后就该查找是什么原因产生的问题,先把fastcGI进程启动后网站能够访问了再细找原因。查看php日志 tail –n 1000 /u...
分类:
Web程序 时间:
2014-07-30 17:12:33
阅读次数:
329
<!doctype html> <html> <head> ??? <meta charset="UTF-8"> ??? <title>Document</title> ??? <style type="text/css"> ???????? body{ ??????????? margin: 0; ?????????...
分类:
编程语言 时间:
2014-07-30 10:15:53
阅读次数:
271
功能说明:显示文本文件的前部的若干行命令格式:head[参数][<文件>…]常用参数:-n:显示前n行,不指定此参数显示前10行使用举例:$headfile$head-5file
分类:
其他好文 时间:
2014-07-30 03:30:43
阅读次数:
194
sed基础用法:sed[-nefr][动作]选项与参数:-n:使用安静(silent)模式。在一般sed的用法中,所有来自STDIN的数据一般都会被列出到萤幕上。但如果加上-n参数后,则只有经过sed特殊处理的那一行(或者动作)才会被列出来。-e:直接在命令列模式上进行sed的动作编辑;-f:直接将sed..
分类:
其他好文 时间:
2014-07-30 03:30:13
阅读次数:
285