遇到的问题:input{1,1,1}, output{1,1}, expected{1}, 
原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next, 
这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:47:08   
                                阅读次数:
454
                             
                    
                        
                            
                            
                                视图(View)实际上是一张或者多张表上的预定义查询,这些表称为基表。从视图中查询信息与从表中查询信息的方法完全相同。只需要简单的 SELECT…FROM 
即可。视图具有以下优点:1. 可以限制用户只能通过视图检索数据。这样就可以对最终用户屏蔽建表时底层的基表。2. 可以将复杂的查询保存为视图。.....
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:38:28   
                                阅读次数:
332
                             
                    
                        
                            
                            
                                这篇对应的是习题16,读写文件
# -*- coding: utf-8 -*-
#对文件更多操作复制A文件的内容到B文件
#from sys import argv
from os.path import exists
prompt = "> "
from_file = raw_input("please input the filename where you want to copy...
                            
                            
                                分类:
编程语言   时间:
2014-05-05 12:54:02   
                                阅读次数:
402
                             
                    
                        
                            
                            
                                这是一篇分享技巧的文章:myeclipse恢复误删文件和代码
[ 恢复误删文件 ]
今天在写代码的时候,不小心把一个包给删除了,然后这个包下所有的文件都没了,相信很多人都有类似的经历,
幸好myeclipse给我们提供了一个很好用的功能:
选中项目 -> Restore from Local History.. -> 界面如下图
勾选要恢复的文件,点击Restore就可以了,就算...
                            
                            
                                分类:
系统相关   时间:
2014-05-04 00:25:53   
                                阅读次数:
515
                             
                    
                        
                            
                            
                                //继承SQLiteOpenHelper类,
public class DictionaryOpenHelper extends SQLiteOpenHelper{
    public static final String DABASENAME = "dictionary";
    private static final int DATABASE_VERSION = 1;
    pri...
                            
                            
                                分类:
移动开发   时间:
2014-05-03 23:49:30   
                                阅读次数:
589
                             
                    
                        
                            
                            
                                BeautifulSoup 善于网页数据分析 ,但是 python for android : BeautifulSoup 有 bug ,
text = h4.a.text 只能取得 None,所以我写了function: getText()
 来fix this bug.
例如: 抓取CSDN极客头条内容  soup.py
import urllib2, re
from Beau...
                            
                            
                                分类:
移动开发   时间:
2014-05-03 17:33:08   
                                阅读次数:
427
                             
                    
                        
                            
                            
                                AcknowledgmentsNotationsContentsIntroduction
3D from imagesOverview
Projective geometry
Projective geometry
The projective planeProjective 3-spaceTransformationsConics and quadrics
The st...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 15:45:32   
                                阅读次数:
584
                             
                    
                        
                            
                            
                                BeautifulSoup 善于网页数据分析 
请参考:  http://www.crummy.com/software/BeautifulSoup
例如: 抓取CSDN首页极客头条内容  soup.py
import urllib2, re
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen("http://gee...
                            
                            
                                分类:
编程语言   时间:
2014-05-03 15:31:42   
                                阅读次数:
401
                             
                    
                        
                            
                            
                                #include
#include
#include
#include
#include
using namespace std;
#define N 20020
struct node{
	int from, to, dou, nex;
}edge[N];
int head[N], edgenum;
void add(int u, int v,int dou){
	node E={u,v,dou...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 15:25:32   
                                阅读次数:
340
                             
                    
                        
                            
                            
                                一、memcached简介Memcached是一款开源、高性能、分布式内存对象缓存系统,可应用各种需要缓存的场景,其主要目的是通过降低对Database的访问来加速web应用程序。它是一个基于内存的“键值对”存储,用于存储数据库调用、API调用或页面引用结果的直接数据,如字符串、对象等。m..
                            
                            
                                分类:
其他好文   时间:
2014-05-03 15:12:31   
                                阅读次数:
304