public class Solution { public void merge(int A[], int m, int B[], int n) { int i=m-1, j=n-1, k=m+n-1; while(i>=0 && j>=0) { ...
分类:
其他好文 时间:
2014-09-05 23:41:02
阅读次数:
181
//归入排序是分而治之的思想//Merge过程的时间复杂度为O(n)//T(n)=O(1) n=1//T(n)=2T(n/2)+O(n)//时间复杂度为O(nlogn)//空间复杂度为O(n)void Merge(int A[],int p,int q,int r){ int n1=q-p+1; ....
分类:
其他好文 时间:
2014-09-05 19:47:51
阅读次数:
136
#-*-coding:utf-8-*-
[p_w_upload]
max_size=262144
render_unsafe_content=false
[browser]
color_scale=True
downloadable_paths=/trunk,/branches/*,/tags/*
hide_properties=svk:merge
intermediate_color=
intermediate_point=
newest_color=(255,136,136)
oldest_color..
分类:
其他好文 时间:
2014-09-05 10:11:21
阅读次数:
2915
重新写了下,代码看着清爽多了 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x...
分类:
其他好文 时间:
2014-09-04 20:54:00
阅读次数:
162
SETFACL(1) Access Control Lists SETFACL(1)NAME setfacl - set file access control listsSYNOPSIS setfacl [-bkndRLPvh] [{-m|-x} acl_spec] [{-M|-X} acl_f....
分类:
系统相关 时间:
2014-09-04 16:28:29
阅读次数:
522
在执行之前:merge into UserInfo u using chartinfo c on u.UserId=c.UserId when matched and u.UserName=c.UserName then update set u.lastUpdate=c.LastUpdate wh...
分类:
数据库 时间:
2014-09-04 13:14:59
阅读次数:
187
One of the UI features of lists on Windows Phone 7 is that the "scroll bars" don't really act like traditional scroll bars; they are non-interactive a...
分类:
其他好文 时间:
2014-09-04 01:34:37
阅读次数:
187
10.1 `ls': List directory contents==================================The `ls' program lists information about files (of any type, includingdirectories)...
分类:
系统相关 时间:
2014-09-03 19:44:07
阅读次数:
450
长生剑、孔雀翎、碧玉刀、多情环、离别钩、霸王枪、拳头是古龙笔下的七种武器,而本文打算将Redis的几种使用方式 Strings、Hashs、Lists、Sets、Sorted Sets、Pub/Sub、Transactions 也比作七种武器,为大家讲解Redis的七种特性,并列举其适合的应用场景。...
分类:
其他好文 时间:
2014-09-03 16:30:46
阅读次数:
180