944
int minDeletionSize(char ** strs, int strsSize){
int sum = 0, n = strlen(strs[0]);
for (int i = 0; i < n; ++i)
{
char ch = strs[0][i];
for (int j = 1; j < strsSize; ++j)
{
if (ch > strs[j][i])
{
sum++;
break;
}
else ch = strs[j][i];
}
}
return sum;
}
按题意模拟即可,比较每一列的字典序