摘自:http://www.cnblogs.com/kerrycode/p/3337817.html数据库统计信息的相关参数有三个:自动创建统计信息(Auto Create Statistics)、自动更新统计信息(Auto Update Statistics)、自动异步更新统计信息(Auto Up...
分类:
数据库 时间:
2015-01-15 18:01:13
阅读次数:
158
【题目】
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the t...
分类:
其他好文 时间:
2015-01-15 12:57:02
阅读次数:
174
移动光标的方法
h 或 向左箭头键(←) 光标向左移动一个字符
j 或 向下箭头键(↓) 光标向下移动一个字符
k 或 向上箭头键(↑) 光标向上移动一个字符
l 或 向右箭头键(→) 光标向右移动一个字符
[Ctrl] + [f] 屏幕『向下』移动一页,相当于 [Page Down]按键 (常用)
[Ctrl] + [b] 屏幕『向上』移动一页,相当于 [Page Up] 按...
分类:
系统相关 时间:
2015-01-15 11:05:25
阅读次数:
228
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ...
分类:
其他好文 时间:
2015-01-15 11:01:23
阅读次数:
186
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?
/**
* Definition for singly-linked list.
*...
分类:
其他好文 时间:
2015-01-15 11:01:22
阅读次数:
236
题意:
给n个二元组(a,b),要在其中找最长的序列,使得对序列中的任意i
分析:
设dp[a][b]代表以(a,b)结尾的最长序列,记忆化搜索即可。
代码:
//poj 1609
//sep9
#include
using namespace std;
const int max_p=128;
int n;
int num[max_p][max_p];
int dp[max_p][m...
分类:
其他好文 时间:
2015-01-15 01:46:49
阅读次数:
176
原文:http://caduke.blog.51cto.com/3365689/1544229当单个服务器性能 不能满足日益增多访问流量时,服务器的扩展策略: Scale Up :向上扩展,提升单个物理主机的性能,比如增加CPU、内存等。Scale Out:向外扩展,将相互依赖的服务器(LAMP等....
分类:
其他好文 时间:
2015-01-15 00:17:49
阅读次数:
320
1.使用 ifconfig -a 查看mac地址 eg:HWaddr:08:00:29:B2:2B2.vi /etc/sysconfig/network-scripts/ifcfg-eth0将HWaddr改为查看到的mac地址3.rm-rf/etc/udev/rules.d/70-persisten...
分类:
其他好文 时间:
2015-01-15 00:06:34
阅读次数:
153
Question:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of t...
分类:
编程语言 时间:
2015-01-14 19:44:13
阅读次数:
323
#ifndef__HControlButton_H__#define__HControlButton_H__#include"cocos2d.h"#include"cocos-ext.h"USING_NS_CC;USING_NS_CC_EXT;//用于标识当前按钮的状态typedefenum{touch_begin,touch_down,touch_up,}tagForTouch;classHControlButton:publicCCNode{public:HControlButton..
分类:
其他好文 时间:
2015-01-14 18:27:58
阅读次数:
279