我们知道SEO对于站长来说是重要的一课,多少都会遇到此类问题,而《10 Steps to Success on the ’Net Without SEO》一文中,作者却指出:SEO(搜索引擎优化)过时啦并让人生厌,如果想站点取得成功,你首先要忘记关于页面优化的所有一切,而是从交换链接开始。那么,下面我们就一起看看作者具体写到的是哪10个步骤。自我合理的定位与特色
要善于选择他人从未涉及过的话题,不必受制于“关键字搜索”...
回溯法,代码如下:
/**
* author Akalius Kung 2008-2-8
**/
public class Queen {
private int[] grids; // location in each row, index is each row, array value is location of each queen
private int n;
private static int sum;
public Queen() {
init(8);
}
public Queen(int n) {
this.n = n;
grids=new int[n];
for(int i=0;i<n;i++){
grids[i]=0;
}
}
private void init(int n){
...
/**
* author Akalius Kung 2008-2-9
**/
public class HeapSort {
private int heapLen;
private int[] sort(int[] array){
heapLen=array.length;
buildHeap(array); // init the heap
for(int i=heapLen-1;i>0;i--){ // swap root and last node, up to down
swap(array,i,0);
heapLen--;
heapify(array,0); // reheapify the root node from 0 to n-1
}
return array;
}
private void buildHeap(...