基本思想:通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按此方法对这两部分数据分别进行快速排序,整个排序过程可以递归进行,以此达到整个数据变成有序序列。 例如 3 1 5 2 7 9 3 0 首先以3为基准数,基准数的意思就是以这个数为参考, ...
分类:
编程语言 时间:
2017-02-05 18:13:55
阅读次数:
178
autoconf.mk uboot的顶层Makefile中有如下的一段代码 [plain] view plaincopy # # Auto-generate the autoconf.mk file (which is included by all makefiles) # # This targ ...
分类:
其他好文 时间:
2017-02-05 00:41:20
阅读次数:
568
在myeclipse下安装svn插件,出现了Could not generate DH keypair,这么一个错误。 这个问题困扰了我半天时间,各种百度也找不到答案,或许是百度能力问题吧。百度出来的解决方法无非就是更换jdk,重装myeclipse,甚至有的说重装系统,其实我都试过了,jdk换了三 ...
分类:
系统相关 时间:
2017-02-04 16:26:30
阅读次数:
428
1000以内有35对双素数 public class Sushu { public static void main(String[] args) { // TODO Auto-generated method stub int qian = 3;//记录前一个素数 int l = 0;//计数器 ...
分类:
其他好文 时间:
2017-02-04 10:53:20
阅读次数:
271
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3, You should return the followi ...
分类:
其他好文 时间:
2017-02-04 10:43:28
阅读次数:
158
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return public class Solution { public List<List<Integer ...
分类:
其他好文 时间:
2017-02-01 10:55:35
阅读次数:
135
这是一个简单版本of LC 424 Longest Repeating Character Replacement 又是Window, 又是Two Pointers Window还是采用每次都try to update left使得window valid, 每次都检查最大window ...
分类:
其他好文 时间:
2017-02-01 10:48:22
阅读次数:
178
有时候,我们想要快速获取数据库中某个表的结构,或者是对应的SQL文。 DDL: 生成用的SQL文 执行结果: 如果将中间的SQL文稍加改造,则可以做成批量Create SQL的语句。 你也可以参考:http://stackoverflow.com/questions/706664/generate- ...
分类:
数据库 时间:
2017-01-27 14:20:33
阅读次数:
326
我的环境: 在使用mvn archetype:generate进行构建的时候,出现[INFO] Generating project in Interactive mode在这里卡住。 然后再使用debug命令查看原因:mvn archetype:generate -X,问题如下: 原因是一直请求上 ...
分类:
其他好文 时间:
2017-01-27 12:52:00
阅读次数:
210
In EM and GMM(Theory), I have introduced the theory of em algorithm for gmm. Now lets practice it in matlab! 1. Generate 1000 pieces of random 2-dimen ...
分类:
其他好文 时间:
2017-01-25 17:28:24
阅读次数:
254