Longest Common Prefix
摘要:
class Solution {public: string longestCommonPrefix(vector &strs) { // Start typing your C/C++ solution below // DO NOT write int main() function int size = strs.size(); if(size == 0) return ""; if(size == 1) return strs[0]; int i = 0; string result = ""; while(1) { if(strs[0] 阅读全文
posted @ 2013-09-06 20:27
邪灵天使
阅读(111)
评论(0)
推荐(0)
浙公网安备 33010602011771号