1.Object-C也是面向对象的语言;2.#include
//#include是一个预处理指令3.using namespace std;
//std是命名空间,using决定了该源程序中的代码可以不用指定命名空间名为std4.const
常量只能读,不能修改,并且定义时必须初始化;5.由低精度...
分类:
编程语言 时间:
2014-05-12 09:07:01
阅读次数:
365
自己写的一段://goolchar* str_replace(char* source,
const char* find, const char* replace){ if (source == NULL || find == NULL ||
find == "") return strdup.....
分类:
其他好文 时间:
2014-05-12 02:42:20
阅读次数:
418
常见情形:从服务器备份Oracle数据库后再到本地机器上还原Oracle数据库的时候经常会碰见数据库字符编码不一致的情况,可以用以下命令来修改本地的Oracle数据库字符编码,然后顺利还原Oracle数据库到本地机器上操作指令:[oracle@gpdb ~]$ sqlplus /nologSQL> conn /as sysdba; SQL>select userenv('language') fr...
分类:
数据库 时间:
2014-05-11 14:21:55
阅读次数:
508
这回又是忽略了题目中的一句话:When the coin reaches the cell that has letter ‘*’
it will be there permanently.
就是说当走到这个格子的时候,就可以定住在这个格子的了。不过这个时候也可以从别的方向走过来,所以题目的真正意思是,在k步内走到这个格子使用的最小的修改指令是多少,并不一定需要就在第k步到达这个格子。
...
分类:
其他好文 时间:
2014-05-11 13:06:57
阅读次数:
472
Triangle
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 8038
Accepted: 2375
Description
Given n distinct points on a plane, your task is to find the triangl...
分类:
其他好文 时间:
2014-05-11 06:36:44
阅读次数:
425
题目
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,...
分类:
其他好文 时间:
2014-05-11 03:25:24
阅读次数:
298
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Maximum Depth of Binary Tree
Total Accepted: 16605 Total
Submissions: 38287
Given a binary tree, find its maximum depth.
...
分类:
其他好文 时间:
2014-05-11 01:58:31
阅读次数:
441
find命令小结find命令用于在系统中查找文件,配合 -exec 选项或
xargs命令还能对查找到得文件执行一些列的自动化操作。基本格式:find [-H] [-L] [-P] [path...]
[expression]path指定起始搜索路径,可以指定多个,exprssion表示搜索表达式,...
分类:
其他好文 时间:
2014-05-10 06:53:44
阅读次数:
324
nginx-404与fastcgi_intercept_errors指令fastcgi_intercept_errors语法:fastcgi_intercept_errors
on|off默认值:fastcgi_intercept_errors off使用字段:http, server, locat...
分类:
其他好文 时间:
2014-05-10 03:20:15
阅读次数:
270
原题地址:http://oj.leetcode.com/problems/single-number-ii/题意:Given
an array of integers, every element appearsthreetimes except for one. Find that
single ...
分类:
编程语言 时间:
2014-05-10 03:01:41
阅读次数:
413