//Gang #include #include #include #include #include #include #define FOR(x,y,z) for(int x=y;x=z;x--) #define ll long long int n,m; int fa[200005]; int... ...
分类:
其他好文 时间:
2017-08-19 10:53:55
阅读次数:
92
【Base64 Encoding / Decoding in Node.js】 Here is how you encode normal text to base64 in Node.js: And here is how you decode base64 encoded strings: If ...
分类:
Web程序 时间:
2017-08-19 00:49:09
阅读次数:
201
参考: https://github.com/jifeng/node-app dispatch.js 主进程文件 worker.js 工作进程 app.js 应用 routes.js url路由表 package.json 依赖模块 config.js or config/ 配置文件 control ...
分类:
Web程序 时间:
2017-08-19 00:46:04
阅读次数:
519
题目:输入两个递增排序的列表,合并这两个链表使新的链表结点按照递增排序。 代码: 1 #include<stdio.h> 2 #include"malloc.h" 3 typedef struct node 4 { 5 struct node *next; 6 int data; 7 }*ListN ...
分类:
编程语言 时间:
2017-08-18 23:45:15
阅读次数:
236
题目:定义一个函数,输入一个链表的头结点,反转该链表并输出反转后链表的头结点。 代码: 1 #include<stdio.h> 2 #include"malloc.h" 3 typedef struct node 4 { 5 struct node *next; 6 int data; 7 }*Li ...
分类:
其他好文 时间:
2017-08-18 22:31:14
阅读次数:
102
LeetCode解题之Populating Next Right Pointers in Each Node 原题 为二叉树的节点都加入一个next指针,指向跟它在同一高度的右边的节点,假设右边没有节点,就指向None。 注意点: 最好仅仅用常量的空间 这是一棵全然二叉树 样例: 输入: 1 / \ ...
分类:
其他好文 时间:
2017-08-18 22:25:24
阅读次数:
177
实作 Quota 流程-1:文件系统支持 [root@www ~]# df -h /home Filesystem Size Used Avail Use% Mounted on /dev/hda3 4.8G 740M 3.8G 17% /home <==鸟哥主机的 /home 确实是独立的。 [r ...
分类:
系统相关 时间:
2017-08-18 20:14:08
阅读次数:
294
问题描述:使用SpringBoot整合redis进行yml配置的时候,启动工程报错,提示加载application.yml配置文件失败: application.yml配置截图: 注意图中有以spring开头的配置项,出现了两个spring,这是不符合yml配置语法的,所以启动报错。 解决方式:将y ...
分类:
编程语言 时间:
2017-08-18 18:38:48
阅读次数:
933
因为住的地方离公司太远,每天上下班都要坐很久的班车,所以最近想搬到公司旁边的皖水公寓住。去问了一下公寓的客服,客服说房源现在没有了,只能等到别人退房,才能在网站上申请到。 如果纯靠手动F5刷新浏览器,来捡漏可入住房源,那简直是太难了。要知道很多人都在电脑前面按着F5,感觉和春运抢票一样。 所以就准备 ...
分类:
其他好文 时间:
2017-08-18 18:23:58
阅读次数:
192
摘抄:https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431925324119bac1bc7979664b4fa9843c0e5fcdcf1e000 Python内置的os模 ...
分类:
编程语言 时间:
2017-08-18 17:16:21
阅读次数:
952