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 target, whe...
分类:
其他好文 时间:
2014-06-09 23:14:45
阅读次数:
264
1. Install golang on Ubuntu 14.04 LTSa)~$ sudo
apt-get install golang successb)~$ sudo add-apt-repository ppa:gophers/go ~$
sudo apt-get update ~$ sud...
分类:
其他好文 时间:
2014-06-08 18:37:28
阅读次数:
331
add by zhj:
在Linux,创建进程是用fork(),它其实就是拷贝父进程的数据段和其它数据,这相当于C函数调用中的值传递,这是此后两者的修改都互不影响。因为两者的数据虽相同,但却在不同的进程地址空间。原文:http://blog.csdn.net/jason314/article/det...
分类:
系统相关 时间:
2014-06-08 18:36:08
阅读次数:
366
#include
using namespace std;
class Date; //对Date类的提前引用声明
class Time
{
public:
Time(int,int,int);
void add_a_second(Date &); //增加1秒,1秒后可能会到了下一天,乃到下一月、下一年
void display(Date &); //显示时间,...
分类:
其他好文 时间:
2014-06-08 18:17:22
阅读次数:
216
18.7、Performing Complete User-Managed Media Recovery
完成一致性备份,把数据库恢复到当前的scn是最好的结果。可以恢复整个数据库,恢复单个表空间,或恢复数据文件。一致性恢复不需要resetlogs打开数据库,非一致性恢复需要resetlogs打开数据库。Backup and Recovery Basics提供了关于介质恢复的信息。
18.7....
分类:
数据库 时间:
2014-06-08 15:27:02
阅读次数:
364
安装 现在可以通过ppa的方法来安装sublime text3 了,个人感觉就是有有点儿慢,毕竟要update一下。sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer配置插件 安装完成之...
分类:
其他好文 时间:
2014-06-08 15:04:52
阅读次数:
247
WebClient web = new CookieWebClient();
web.Encoding = Encoding.UTF8;
string regUrl = "http://test.com";
web.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
byte[] post = Encoding.UTF...
分类:
Web程序 时间:
2014-06-08 10:50:57
阅读次数:
324
git clone git-url
git add .
git comm -a -m ' desc '
git push...
分类:
其他好文 时间:
2014-06-08 02:21:09
阅读次数:
217
1.多项式的系数存放在数组中
# include
# include
# define max(x,y) ((x)>(y)?(x):(y))
using namespace std;
const int N=100;
struct poly
{
int arr[N];
int mexp;
};
void add(poly &a,poly &b,poly &c)
{
memset(c.ar...
分类:
其他好文 时间:
2014-06-08 02:17:57
阅读次数:
264
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 target, whe...
分类:
其他好文 时间:
2014-06-08 02:12:04
阅读次数:
216