11 2014 档案
[Leetcode][JAVA] Binary Tree Maximum Path Sum
摘要:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ... 阅读全文
posted @ 2014-11-19 00:34 metalx 阅读(143) 评论(0) 推荐(0)
[Leetcode][JAVA] Valid Palindrome
摘要:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana... 阅读全文
posted @ 2014-11-18 23:59 metalx 阅读(156) 评论(0) 推荐(0)
[Leetcode][JAVA] Word Ladder II
摘要:Given two words (startandend), and a dictionary, find all shortest transformation sequence(s) fromstarttoend, such that:Only one letter can be changed... 阅读全文
posted @ 2014-11-17 03:22 metalx 阅读(599) 评论(0) 推荐(0)
[Leetcode][JAVA] Word Ladder
摘要:Given two words (startandend), and a dictionary, find the length of shortest transformation sequence fromstarttoend, such that:Only one letter can be ... 阅读全文
posted @ 2014-11-09 23:17 metalx 阅读(190) 评论(0) 推荐(0)
[Leetcode][JAVA] Longest Consecutive Sequence
摘要: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 longest ... 阅读全文
posted @ 2014-11-06 23:13 metalx 阅读(184) 评论(0) 推荐(0)