摘要: No.205 Ismorphic StringsGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to ge... 阅读全文
posted @ 2015-06-10 16:06 人生不酱油 阅读(139) 评论(0) 推荐(0) 编辑
摘要: No.217 Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears ... 阅读全文
posted @ 2015-06-10 15:29 人生不酱油 阅读(115) 评论(0) 推荐(0) 编辑
摘要: No.14 Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.求一组string的最长公共前缀想法:找到最短的那个,然后依次对比典型的字... 阅读全文
posted @ 2015-06-10 15:09 人生不酱油 阅读(125) 评论(0) 推荐(0) 编辑