摘要: 题目: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the tel 阅读全文
posted @ 2016-06-14 16:11 CodingGirl121 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 题目: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e 阅读全文
posted @ 2016-06-14 11:26 CodingGirl121 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 lo 阅读全文
posted @ 2016-06-13 18:31 CodingGirl121 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted i 阅读全文
posted @ 2016-06-01 14:24 CodingGirl121 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 题目解答: 这个题目是将一个二叉树变成一个通过右子节点链接的链表 阅读全文
posted @ 2016-06-01 14:15 CodingGirl121 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 题目: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each 阅读全文
posted @ 2016-06-01 11:22 CodingGirl121 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so 阅读全文
posted @ 2016-05-31 16:48 CodingGirl121 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may a 阅读全文
posted @ 2016-05-30 16:19 CodingGirl121 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each el 阅读全文
posted @ 2016-05-30 15:16 CodingGirl121 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each eleme 阅读全文
posted @ 2016-05-30 15:02 CodingGirl121 阅读(134) 评论(0) 推荐(0) 编辑