上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: 题目链接 题目要求: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any... 阅读全文
posted @ 2015-06-17 14:07 峰子_仰望阳光 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1.Reverse Integer 题目链接 题目要求: Reverse digits of an integer. Example1:x = 123, return 321 Example2:x = -123, return -321 click to show spoilers.... 阅读全文
posted @ 2015-06-16 22:42 峰子_仰望阳光 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Given a stringSand a stringT, count the number of distinct subsequences ofTinS. A subsequence of a string is a new string which is for... 阅读全文
posted @ 2015-06-16 17:06 峰子_仰望阳光 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possib... 阅读全文
posted @ 2015-06-16 14:40 峰子_仰望阳光 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.) ... 阅读全文
posted @ 2015-06-16 10:21 峰子_仰望阳光 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given"2552551... 阅读全文
posted @ 2015-06-14 23:05 峰子_仰望阳光 阅读(377) 评论(1) 推荐(0) 编辑
摘要: 题目链接 题目要求: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a ... 阅读全文
posted @ 2015-06-14 15:40 峰子_仰望阳光 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1.Unique Binary Search Trees 题目链接 题目要求: Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n? For example, Gi... 阅读全文
posted @ 2015-06-13 21:57 峰子_仰望阳光 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 之所以将这三道题放在一起,是因为这三道题非常类似。 1.Minimum Path Sum 题目链接 题目要求: Given amxngrid filled with non-negative numbers, find a path from top left to bottom rig... 阅读全文
posted @ 2015-06-13 16:06 峰子_仰望阳光 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top r... 阅读全文
posted @ 2015-06-13 13:10 峰子_仰望阳光 阅读(289) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页