摘要:
Longest Common Prefix:Write a function to find the longest common prefix string amongst an array of strings. 题意:查找一个字符串数组中的字符串的最长公共子序列。 思路:首先查找字符串数组中,字符串长度最小的字符串的索引,然后在逐位判断。 代码: public String longestC... 阅读全文
posted @ 2016-01-10 10:00
Lewisr
阅读(144)
评论(0)
推荐(0)
摘要:
Length of Last Word:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0. Note... 阅读全文
posted @ 2016-01-10 09:56
Lewisr
阅读(128)
评论(0)
推荐(0)

浙公网安备 33010602011771号