上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: 题目: Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node i 阅读全文
posted @ 2017-11-01 14:28 荒野第一快递员 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: 阅读全文
posted @ 2017-11-01 10:46 荒野第一快递员 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, suc 阅读全文
posted @ 2017-11-01 10:14 荒野第一快递员 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWo 阅读全文
posted @ 2017-10-23 14:21 荒野第一快递员 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2],The lo 阅读全文
posted @ 2017-10-22 14:49 荒野第一快递员 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitio 阅读全文
posted @ 2017-10-17 14:13 荒野第一快递员 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For ex 阅读全文
posted @ 2017-10-17 12:31 荒野第一快递员 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word 阅读全文
posted @ 2017-10-17 11:06 荒野第一快递员 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 题目:输入一棵二叉搜索树,将该二叉搜索树转换成一个排序的双向链表。要求不能创建任何新的结点,只能调整树中结点指针的指向。 方法一:非递归 1.核心是中序遍历的非递归算法。 2.修改当前遍历节点与前一遍历节点的指针指向。 /** public class TreeNode { int val = 0; 阅读全文
posted @ 2017-09-22 16:05 荒野第一快递员 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There ar 阅读全文
posted @ 2017-09-14 20:34 荒野第一快递员 阅读(286) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页