Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2014-10-08 00:05:04
阅读次数:
221
mysql中的in语句是把外表和内表作hash 连接,而exists语句是对外表作loop循环,每次loop循环再对内表进行查询。一直大家都认为exists比in语句的效率要高,这种说法其实是不准确的。这个是要区分环境的。
如果查询的两个表大小相当,那么用in和exists差别不大。
如果两个表中一个较小,一个是大表,则子查询表大的用exists,子查询表小的用in:
...
分类:
数据库 时间:
2014-10-07 14:38:03
阅读次数:
202
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-10-07 00:32:12
阅读次数:
237
关系型:使用一个关系,来表示实体信息和实体之间的联系关系:就是一个二维表,有行有列的表格创建数据库:create database 库名;容错级创建:create database if not exists 库名;创建带有系统保留字的数据库时,用库名包裹方法(用反引号将系统保留字包裹起来)指定字符...
分类:
数据库 时间:
2014-10-05 14:03:18
阅读次数:
219
一、操作数据库 1.创建数据库 CREATE DATABASE [IF NOT EXISTS] db_name[create_specification [, create_specification] ...] create_specification: [DEFAULT] ...
分类:
数据库 时间:
2014-10-04 12:18:46
阅读次数:
402
视频播放我们用到的是MediaPlayer,显示控件使用的surfaceView我们向SD卡中先添加个视频文件,我的是xajh.3gp,不要用mp4,MP4会出现should have subtitle controller already set的错误,应该是格式的问题造成的我们看下布局文件 .....
分类:
移动开发 时间:
2014-10-03 15:36:24
阅读次数:
288
[leetcode]Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring....
分类:
其他好文 时间:
2014-10-02 13:30:42
阅读次数:
217
Skipped: sound engine, GUINative support webGL/html5, chrome will soon discard plugins, IE soon too, firefox already, safari unknownMobile supportHDR,...
分类:
其他好文 时间:
2014-10-01 14:03:41
阅读次数:
216
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
面DP题的考官都是神经病。。(吐...
分类:
其他好文 时间:
2014-10-01 13:15:31
阅读次数:
242
首先建立分类信息表:1 CREATE TABLE IF NOT EXISTS `category` (2 `categoryId` smallint(5) unsigned NOT NULL AUTO_INCREMENT,3 `parentId` smallint(5) unsigned N...
分类:
Web程序 时间:
2014-10-01 11:21:30
阅读次数:
280