2)安装: 解压: cd /software tar -zxvf R-3.3.2.tar.gz mkdir -p /home/liyg/software/R cd R-3.3.2 ./configure --prefix=/home/liyg/software/R --enable-R-shlib 3) 报错和解决方法:./configure --prefix=/home/liyg/software/R --enable-R-shlib a) 报错如下: configure:5783: res
matrix.h: Simple matrix class dsexceptions.h: Simple exception classes Fig01_02.cpp: A simple recursive routine with a test program Fig01_03.cpp: An example of infinite recursion Fig01_04.cpp: Recursive routine to print numbers, with a test program
quickSort-mergeSort-heapSort-radixSort
非递归快速排序归并排序堆排序基数排序的实现
//快速排序
function quickSort ( arr ) {
var parts = [ [ 0 , arr . length - 1 ] ] ;
while ( parts . length ) {
var part = parts . shift ( ) ;
var l = part [ 0 ] ;