# Definition for a binary tree node# class
TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right
...
分类:
其他好文 时间:
2014-05-05 22:56:23
阅读次数:
419
Problem
Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are
inspected in this problem:Hash Table. One hash set is the words di...
分类:
其他好文 时间:
2014-05-05 22:44:44
阅读次数:
393
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他好文 时间:
2014-05-05 22:44:13
阅读次数:
328
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他好文 时间:
2014-05-05 22:43:14
阅读次数:
313
Problem E: WeddingUp to thirty couples will
attend a wedding feast, at which they will be seated on either side of a long
table. The bride and groom s...
分类:
其他好文 时间:
2014-05-05 22:10:59
阅读次数:
373
图片水平垂直居中的两个常用方法:1、Table-cell。
IE8+及标准浏览器利用display:table-cell让容器以表格元素的方式呈现,配合vertical-align和text-align实现内部图片水平垂直居中。
IE67不支持display:table-cell,可用font-.....
分类:
其他好文 时间:
2014-05-03 23:32:32
阅读次数:
424
iOS设备的内存有限,如果用UITableView显示成千上万条数据,就需要成千上万个UITableViewCell对象的话,那将会耗尽iOS设备的内存。要解决该问题,需要重用UITableViewCell对象重用原理:当滚动列表时,部分UITableViewCell会移出窗口,UITableVie...
分类:
其他好文 时间:
2014-05-03 23:26:14
阅读次数:
312
DDL :Data Definition Language (DDL) statements
are used to define the database structure or schema. Some examples:CREATE - to
create objects in the da...
分类:
数据库 时间:
2014-05-03 22:21:22
阅读次数:
410
The game of billiards involves two players knocking 3 balls around
on a green baize table. Well, there is more to it, but for our
purposes this is sufficient.
The game consists of several rounds ...
分类:
其他好文 时间:
2014-05-03 16:15:33
阅读次数:
296
模块“市”的设计与加入
现在重复加入“省”模块的过程,来加入市的模块。
1、建立数据表CityCREATE TABLE [dbo].[City](
[tf_cityId] [nvarchar](4) COLLATE Chinese_PRC_CI_AS NOT NULL,
[tf_provinceId] [nvarchar](2) COLLATE Chinese_PRC_...
分类:
其他好文 时间:
2014-05-03 16:02:29
阅读次数:
293