http://www.cnblogs.com/spork/archive/2009/12/29/1634766.html来自原小站,曾经迷糊过的东西,表上来,希望对正在迷糊或即将迷糊的人有帮助。 谈到系统的可伸缩性,Scale-up(纵向扩展)和Scale-out(横向扩展)是两个常见的术语,对于....
分类:
其他好文 时间:
2015-01-07 16:40:06
阅读次数:
165
http://blog.sina.com.cn/s/blog_4770ef020101h48l.html功能:唤醒注册到等待队列上的进程原型:#includevoid wake_up_interruptible (wait_queue_head_t *q);说明: 唤醒 q指定的注册在等待队列上的进...
分类:
系统相关 时间:
2015-01-07 16:20:34
阅读次数:
183
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
第一题要求是否有环 从图中可以看出 使用快慢指针 只要有环两者必定会相遇 另外从...
分类:
编程语言 时间:
2015-01-07 14:59:22
阅读次数:
178
现象:1) boot2docker ssh需要输入密码2) boot2docker start 或 up 需要输入密码解决方法:1)删除/Users/sunzhaoyu/.boot2docker/certs/boot2docker-vm 目录;2)执行boot2docker reset、boot2d...
分类:
其他好文 时间:
2015-01-07 14:55:10
阅读次数:
75
题目:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:使用快慢两个指针。开始时,两个指针同时指向head,之后slow每次前行一步,fast每次前行两步。如果链表有环,这两个指针一定会相遇,如果没有...
分类:
编程语言 时间:
2015-01-07 13:16:22
阅读次数:
172
题目:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
思路:
可以参考
LeetCode: 73 Linked ...
分类:
编程语言 时间:
2015-01-07 13:08:14
阅读次数:
161
水题,直接贴代码。
//poj 1492
//sep9
#include
using namespace std;
int a[64];
int n;
void deal()
{
int up=0,down=0,upSum=0,downSum=0;
int i,j;
for(i=1;i<n;){
if(a[i]<a[i+1]){
++up;
for(j=i+1;j<=...
分类:
其他好文 时间:
2015-01-07 01:53:11
阅读次数:
163
本文翻译自国外著名IOS源码教学商业网站raywenderlich 的IOS Game Start Kits三件套之一的Platformer Game/平台动作游戏的前奏曲,另一个是Beat'Em up Game/横版格斗游戏,作者是国外著名游戏开发专家Jake Gundersen,曾参与开发过SFC时代的洛克人X系列。
还记得超级马里奥的青青草地蓝天白云吗?还记得曾让人爱恨交加又不屈不挠让人不忍放弃的洛克人ZERO吗,我们燃起小宇宙一招龙炎刃击败最终Boss的场面是曾多么热血澎湃!这些感动一代人的游戏陪伴...
分类:
其他好文 时间:
2015-01-07 00:40:22
阅读次数:
3233
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2015-01-07 00:23:00
阅读次数:
245
启动AVD模拟器异常:Cannot set up guest memory ‘pc.ram’ 错误信息: HAX is working and emulator runs in fast virt mode Cannot set up guest memory 'pc.ram': Invalid argument Error accepting connect...
分类:
移动开发 时间:
2015-01-06 23:14:22
阅读次数:
307