题目:https://leetcode.com/problems/longest-common-prefix/
知识点:
极端情况的考虑,输入数据为空的情况。
各数组不同步结束的处理,注意越界。
vector<string>的操作,strs[0][0]返回第一个字符串的第一个字母,strs[i]返回第i+1个字符串。
题目:https://leetcode.com/problems/longest-common-prefix/
知识点:
极端情况的考虑,输入数据为空的情况。
各数组不同步结束的处理,注意越界。
vector<string>的操作,strs[0][0]返回第一个字符串的第一个字母,strs[i]返回第i+1个字符串。