摘要:
摘自:http://www.cnblogs.com/Leo_wl/p/3409096.html#commentform 硬是没找到在哪儿转载。。题目要求Linked List CycleGiven a linked list, determine if it has a cycle in it.Fo... 阅读全文
摘要:
题目:Given a string s and a dictionary of words dict, determine if s can be break into a space-separated sequence of one or more dictionary words.Exampl... 阅读全文
摘要:
题目:Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes.The lowest common ancestor is the node with la... 阅读全文
摘要:
题目:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.ExampleGiven the below binary tree: 1 / \2 3re... 阅读全文
摘要:
题目描述:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime compl... 阅读全文
摘要:
一个难度为Easy的题,看了好多人的题解都没想明白,最后使劲想使劲想,才想的差不多。。太弱了,要找不到工作了。。题目描述:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like t... 阅读全文