摘要:
递归对内存空间得要求很高,递归很容易造成栈溢出 java.lang.StackOverflowError at com.scarlett.bowling.Misc.printN2(Misc.java:15) at com.scarlett.bowling.Misc.printN2(Misc.java 阅读全文
摘要:
Sometimes we need to drop column from a database, developers write script to drop the column by following:ALTER TABLE DROP COLUMN But if the column is already dropped from the database it will through a error as the column is no longer exist. We want to do is to drop a table or column, but only if . 阅读全文
摘要:
概念从第2个元素开始,将每一个元素插入到已经排好序的序列中,得到一个新的排好序的序列Java版实现 public static void insert(Integer[] array) { Integer s; int j; for (int i = 1; i = 0 && array[j] > s; j--) array[j+1] = array[j]; // move the element backward array[j+1] = s; // put the ith element in the right place } // end if the eleme. 阅读全文