944. 删列造序
解法一:遍历
没啥好讲的,双重遍历
/**
* @param {string[]} strs
* @return {number}
*/
var minDeletionSize = function (strs) {
let res = 0;
for (let i = 0; i < strs[0].length; i++) {
for (let j = 0; j < strs.length - 1; j++) {
if (strs[j][i] > strs[j + 1][i]) {
res++;
break;
}
}
}
return res;
};