摘要: Write a function to find the longest common prefix string amongst an array of strings.方法一: 1 class Solution { 2 public: 3 string longestCommonPref... 阅读全文
posted @ 2014-07-08 14:38 Hicandyman 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl... 阅读全文
posted @ 2014-07-08 14:14 Hicandyman 阅读(125) 评论(0) 推荐(0) 编辑