语言:Python描述:使用递归实现 1 # Definition for a binary tree node 2 # class TreeNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self...
分类:
其他好文 时间:
2014-07-09 20:46:34
阅读次数:
168
看下面的英文解释:const char* c_str ( ) const;Get C string equivalentGenerates a null-terminated sequence of characters (c-string) with the same content as the...
分类:
编程语言 时间:
2014-07-09 20:40:50
阅读次数:
345
区间颜色不一致就更新到底,否则lazy标记
#include
#include
#include
#include
using namespace std;
#define lc l,m,index<<1
#define rc m+1,r,index<<1|1
#define N 100005
#define ll __int64
struct node
{
bool same;
ll c...
分类:
其他好文 时间:
2014-07-08 18:00:56
阅读次数:
226
Visual Studio 2013 与 14
如果
Install Visual Studio on the same computer as Visual Studio in 2013 "14" when CTP 14.0.21730.1 DP, a number of known issues.
While we expect that the Visual Stu...
分类:
其他好文 时间:
2014-07-08 16:09:04
阅读次数:
196
it is much easier to get the same result through PHP because the PHP language offers some global constant variables and built-in functions....
分类:
Web程序 时间:
2014-07-08 12:48:07
阅读次数:
196
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
分类:
其他好文 时间:
2014-07-08 00:41:49
阅读次数:
235
Divide an array into the maximum number of same((-))sized blocks, each of which should contain an index P such that A[P - 1] A[P + 1].
分类:
其他好文 时间:
2014-07-06 15:30:31
阅读次数:
465
/****************************************************************** find the biggest x number in a sequence* the basic method is the same as the Quic....
分类:
其他好文 时间:
2014-07-06 13:12:01
阅读次数:
176
链表的归并排序
超时的代码
class Solution:
def merge(self, head1, head2):
if head1 == None:
return head2
if head2 == None:
return head1
# head1 and head2 point to the same link list
if head1 == he...
分类:
编程语言 时间:
2014-07-06 09:09:51
阅读次数:
275
Description: Given two strings, write a method to decide if one is a permutation of the other.We could use the same idea from CTCI 1.1. The only diffe...
分类:
其他好文 时间:
2014-07-05 21:43:01
阅读次数:
231