2014年10月13日

[leetcode] Longest Common Prefix @ Python

摘要: Source:https://oj.leetcode.com/problems/longest-common-prefix/Write a function to find the longest common prefix string amongst an array of strings.Hi... 阅读全文

posted @ 2014-10-13 22:33 AIDasr 阅读(729) 评论(0) 推荐(0) 编辑

[leetcode] path sum @ Python [recursion]

摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo... 阅读全文

posted @ 2014-10-13 00:22 AIDasr 阅读(565) 评论(0) 推荐(0) 编辑

导航