摘要: Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文
posted @ 2014-06-24 16:09 Averill Zheng 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Write a function to find the longest common prefix string amongst an array of strings.public class Solution { public String longestCommonPrefix(Str... 阅读全文
posted @ 2014-06-24 15:17 Averill Zheng 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol... 阅读全文
posted @ 2014-06-24 11:27 Averill Zheng 阅读(178) 评论(0) 推荐(0) 编辑