We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12f5dd1 commit 19aa57aCopy full SHA for 19aa57a
solution/0000-0099/0014.Longest Common Prefix/Solution.c
@@ -1,6 +1,4 @@
1
char* longestCommonPrefix(char** strs, int strsSize) {
2
- if (strsSize == 0)
3
- return "";
4
for (int i = 0; strs[0][i]; i++) {
5
for (int j = 1; j < strsSize; j++) {
6
if (strs[j][i] != strs[0][i]) {
0 commit comments