javaÅжϳöջ˳ÐòÊÇ·ñÕýÈ·
ÎÒÃÇÖªµÀÕ»ÊÇÒ»ÖÖÏȽøºó³öµÄÊý¾ÝÈÝÆ÷¡£µ±Ò»¸öÕ»µÄÊäÈëÐòÁÐÊǵÝÔöÐòÁУ¨ÀýÈça,b,c,d£©£¬²¢ÇÒÔÚ½øÕ»²Ù×÷ʱ£¬ÔÊÐíÍËÕ»²Ù×÷£¬ÔòÊä³öµÄÐòÁпÉÄÜÓжàÖÖÐÎʽ£¨ÀýÈ磺d,c,b,a»òa,c,b,dµÈ£©¡£µ«ÊÇÈ´¿Ï¶¨²»»á³öÏÖÈçϳöÕ»ÐòÁÐ:a,d,b,c»òd,a,b,cµÈ¡£ÔÚÊäÈëÐòÁÐΪµÝÔöÐòÁеļÙÉèÏ£¬Çë±àдһ¸öËã·¨ÅжÏÊäÈëµÄ×Ö·û´®±íʾµÄ³öÕ»ÐòÁÐÊÇ·ñΪÕýÈ·µÄ³öÕ»ÐòÁС£ÀýÈ磺ÊäÈëµÄ×Ö·ûÐòÁÐΪdcba£¬Ôò·µ»ØֵΪtrue£»ÈôÊäÈëµÄ×Ö·ûÐòÁÐΪadbc£¬Ôò·µ»ØµÄֵΪfalse¡£
Ò»¸ö¼òµ¥µÄ¶ÑÕ»£º
public class SqStack {
private int size;
private Object[] datas;
private int top;
public SqStack(){
this(50);
size = 50;
}
public SqStack(int size) {
this.size = size;
datas = new Object[size];
top = -1;
}
public void push(Object data){
//...
}
public Object pop(){
//...
}
public Object getTop(){
//...
}
public boolean isEmpty(){
//...
}
}
public static boolean isStackOutSequence(String str){
SqStack s=new SqStack();
for(int i=0;i<str.length();i++){
for(int j=i+1;j<str.length();j++){
if(str.charAt(j)<str.charAt(i)){
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
µ±spider³ÌÐò·ÃÎʵ½Ò»¸öÍøÒ³£¬±ØÐë½øÐÐÒÔϼ¸Ïî»ù±¾´¦Àí£º³éÈ¡ÍøÒ³Öаüº¬µÄÎı¾;³éÈ¡ÍøÒ³Öаüº¬µÄURL£¬²¢½«ÆäÇø·ÖΪÍøÒ³Öаüº¬µÄÎı¾£»³éÈ¡ÍøÒ³Öаüº¬µÄURL£¬²¢½«ÆäÇø·ÖΪÍøÕ¾ÄÚURL»òÍøÕ¾ÍâURL¡£
2.2¸÷Ö÷Òª¹¦ÄÜ Ä£¿é£¨ÀࣩÉè¼Æ
2.2.1 spiderÀà
¸ÃÀàΪÖ÷À࣬¼Ì³Ð×ÔÏß³ÌÀà¡£Ëü±¾Ê²¢²»×ö»ñÈ¡ÍøÒ³µÄ¾ßÌå ......
package algorithm.misc;
import util.*;
public class MaxProductOfN1 {
private static int exceptIndex = -1;
public static long regMethod(int data[])
{
long ret = Long.MIN_VALUE;
& ......
´ÓJava1.1¿ªÊ¼ÒýÈëÁËÄÚ²¿ÀàÒÔÀ´£¬Ëü¾ÍÒýÆðÁËÈËÃǵļ¤ÁÒÕùÂÛ¡£ÆäʵÈκÎÓÅÐãµÄÓïÑÔÌØÐÔÓõò»ºÃ¾ÍÊÇÀÄÓã¬ÄÚ²¿ÀàÓõò»ºÃ¾Í»áµ¼Ö´úÂëÏñÃÔ¹¬Ò»Ñù£¬µ¼Ö³öÏÖºÁÎÞÖØÓõÄ×ÛºÏÕ÷¡£
1¡¢ÄÚ²¿Àà·ÖΪ³ÉÔ±ÄÚ²¿Àà¡¢¾²Ì¬Ç¶Ì×Àà¡¢·½·¨ÄÚ²¿Àà¡¢ÄäÃûÄÚ²¿Àà¡£
¼¸ÖÖÄÚ²¿ÀàµÄ¹²ÐÔ£º
A¡¢ÄÚ²¿ÀàÈÔÈ»ÊÇÒ»¸ö¶ÀÁ¢µÄÀ࣬ÔÚ±àÒëÖ®ºó»áÄÚ²¿Àà»á±»±àÒ ......
1.ʲôÊǶÔÏó£¬Ê²Ã´ÊÇÃæÏò¶ÔÏó£¬Ê²Ã´ÊÇÀࣿ
ÏÖʵÊÀ½çÖÐÈκÎʵÌ嶼¿ÉÒÔ¿´×÷ÊǶÔÏó¡£ËûÃÇÓÐÁ½ÖÖÌØÕ÷£ºËûÃǶ¼ÓµÓÐ״̬ÓëÐÐΪ¡£Èí¼þÖеĶÔÏóÓÐ×Ô¼ºµÄÊôÐÔºÍÄܹ»Ö´ÐеIJÙ×÷¡£
ËùνÃæÏò¶ÔÏó¾ÍÊÇ»ùÓÚ¶ÔÏó¸ÅÄÒÔ¶ÔÏóΪÖÐÐÄ£¬ÒÔÀàºÍ¼Ì³ÐΪ¹¹Ôì»úÖÆ£¬À´ÈÏʶ¡¢Àí½â¡¢¿Ì»¿Í¹ÛÊÀ½çºÍÉè¼Æ¡¢¹¹½¨ÏàÓ¦µÄÈí¼þϵͳ¡£
Àà¾ÍÊǶÔÒ»¸öÊÂÎ ......