08 2016 档案

摘要:Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f 阅读全文
posted @ 2016-08-17 21:31 hhboboy 阅读(233) 评论(0) 推荐(0) 编辑
摘要:Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f 阅读全文
posted @ 2016-08-15 23:03 hhboboy 阅读(225) 评论(0) 推荐(0) 编辑
摘要:Description: Count the number of prime numbers less than a non-negative number, n. Credits:Special thanks to @mithmatt for adding this problem and cre 阅读全文
posted @ 2016-08-13 18:13 hhboboy 阅读(164) 评论(0) 推荐(0) 编辑
摘要:Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a complete binary tree every level, ex 阅读全文
posted @ 2016-08-13 16:49 hhboboy 阅读(178) 评论(0) 推荐(0) 编辑
摘要:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example,Given 1->2 阅读全文
posted @ 2016-08-09 21:40 hhboboy 阅读(123) 评论(0) 推荐(0) 编辑