使用分区数据表: 分区数据表和merge数据表具有相似的作用,但是分区数据表确确实实是一个数据表 ,不像merge是列出数据表的逻辑关系,并且分区数据表可以包括像myisam以外的 的数据表。创建分区数据表: create table 里给出数据列和索引,然后用partition by 定义...
分类:
数据库 时间:
2014-08-21 22:31:04
阅读次数:
418
这题前一阵子就看到了,一直没时间做,昨晚睡前想了想,要求n*log(n)以内的时间复杂度,第一时间想到的就是归并、快排和希尔排序(注:希尔排序时间为O(n^1.3),在数据量大于2的情况下小于n*log(n)),个人以为,链表的特性更适合归并,所以采用归并排序,实现的merge代码如下:publ.....
分类:
其他好文 时间:
2014-08-21 19:01:54
阅读次数:
226
PHPCMS分页的用法前面需要有引用的list,代码如下:{pc:content action="lists" catid="11" order="id DESC" thumb="" moreinfo="" page="$page" num="4" cache="3600" } {loop $...
分类:
Web程序 时间:
2014-08-21 18:45:54
阅读次数:
281
摘自: CSDN逆觞git在pull时,出现这种错误的时候,可能很多人进进行stash,相关stash的请看:Error pulling origin: error: Your local changes to the following files would be overwritten by ...
Median of Two Sorted Arrays
Total Accepted: 17932 Total
Submissions: 103927My Submissions
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sort...
分类:
其他好文 时间:
2014-08-21 13:24:54
阅读次数:
206
下载 http://www.erlang.org/download/otp_doc_man_17.1.tar.gz找到erlang 安装目录解压otp_doc_man_17.1.tar.gzsudo cp -r man /usr/local/lib/erlangerl -man lists 查看结果
分类:
其他好文 时间:
2014-08-21 13:15:34
阅读次数:
224
1A! We get median of each array and compare them, then we know which half should be disguarded and how many should be disguarded.class Solution {publi...
分类:
其他好文 时间:
2014-08-21 13:13:24
阅读次数:
191
Question:Given a sorted array of n integers that has been rotated an unknown number of times, write code to find anelement in the array. You may assum...
分类:
其他好文 时间:
2014-08-21 02:46:43
阅读次数:
194
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-08-20 22:28:12
阅读次数:
244
如果把远程的分支merge到本地:
点击merge后,然后选择远程的branch进行merge
如果把远程版本my_new_branchmerge到mater
如果把远程版本my_new_branch2 merge到远程版本my_new_branch
a)默认...
分类:
其他好文 时间:
2014-08-20 19:40:02
阅读次数:
321