摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan... 阅读全文
posted @ 2015-05-26 17:43 TonyLuis 阅读(223) 评论(0) 推荐(0)
摘要: 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 @ 2015-05-26 17:26 TonyLuis 阅读(133) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-05-26 16:51 TonyLuis 阅读(221) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-05-26 14:39 TonyLuis 阅读(186) 评论(0) 推荐(0)