06 2016 档案
摘要:题目: 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
阅读全文
摘要:题目: 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
阅读全文
摘要:题目: 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
阅读全文
摘要:题目: 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
阅读全文
摘要:题目: Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 题目解答: 这个题目是将一个二叉树变成一个通过右子节点链接的链表
阅读全文
摘要:题目: 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
阅读全文