[LeetCode] Flatten Binary Tree to Linked List 解题报告

摘要: Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t... 阅读全文
posted @ 2012-12-22 11:38 小刀初试 阅读(168) 评论(0) 推荐(0)

[LeetCode] First Missing Positive 解题报告

摘要: Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sho... 阅读全文
posted @ 2012-12-21 16:40 小刀初试 阅读(136) 评论(0) 推荐(0)

[LeetCode] Edit Distance 解题报告

摘要: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t... 阅读全文
posted @ 2012-12-21 14:35 小刀初试 阅读(150) 评论(0) 推荐(0)

[LeetCode] Divide Two Integers 解题报告

摘要: Divide two integers without using multiplication, division and mod operator.两个数的除法,但是不允许用乘、除、取余符号。[解题思路]如果可以用乘的话,二分搜索倒是不错的解法。否则,只能寄希望于位符操作了。 基本思想就是把除数... 阅读全文
posted @ 2012-12-21 04:49 小刀初试 阅读(189) 评论(0) 推荐(0)

[Leetcode] Distinct Subsequences 解题报告

摘要: Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th... 阅读全文
posted @ 2012-12-20 08:03 小刀初试 阅读(194) 评论(0) 推荐(0)

Ubuntu下MySql配置

摘要: 注意,在Ubuntu下MySQL缺省是只允许本地访问的,如果你要其他机器也能够访问的话,那么需要改变/etc/mysql/my.cnf配置文件了!下面我们一步步地来:默认的MySQL安装之后根用户是没有密码的,所以首先用根用户进入:$mysql -u root在这里之所以用-u root是因为我现... 阅读全文
posted @ 2007-04-27 12:48 小刀初试 阅读(137) 评论(0) 推荐(0)

是否显示标题字段

摘要: true 阅读全文
posted @ 2007-04-25 18:29 小刀初试 阅读(96) 评论(0) 推荐(0)

是否在帖子撰写器中显示相关的链接框

摘要: false 阅读全文
posted @ 2007-04-25 18:29 小刀初试 阅读(64) 评论(0) 推荐(0)

用于发布您的博客的 BlogSpot 子域

摘要: fisherlei 阅读全文
posted @ 2007-04-25 18:29 小刀初试 阅读(74) 评论(0) 推荐(0)

时间戳格式的编号

摘要: 27 阅读全文
posted @ 2007-04-25 18:29 小刀初试 阅读(93) 评论(0) 推荐(0)