摘要:
Write a function to find the longest common prefix string amongst an array of strings.Solution:class Solution {public: string longestCommonPrefix(vector &strs) { int len = 0, n = strs.size(), MaxL = 0; if(n == 0) return ""; else if(n == 1) return strs[0]; for(i... 阅读全文
posted @ 2014-03-11 10:04
xchangcheng
阅读(174)
评论(0)
推荐(0)

浙公网安备 33010602011771号