Delete Columns II - JavaScript - can it be faster ?
\n/**\n * @param {string[]} strs\n * @return {number}\n */\nvar minDeletionSize = function(strs) {\n    let sorted = new Array(strs.length-1).fill(false)\n    l
```\n/**\n * @param {string[]} strs\n * @return {number}\n */\nvar minDeletionSize = function(strs) {\n    let sorted = new Array(strs.length-1).fill(false)\n    let i = j = count = 0\n\n    for (i = 0; i < strs[0].length; i++) {\n        for (j = 1; j < strs.length; j++) {\n            if (!sorted[j-1] && strs[j-1][i] > strs[j][i]) {\n                count ++\n                break\n            } \n        }\n\n        if (j < strs.length) continue\n\n        for (j = 1; j < strs.length; j++) {\n            if (!sorted[j-1] && strs[j-1][i] < strs[j][i]) {\n                sorted[j-1] = true\n            }\n        }\n\n        if (sorted.every(v => v === true)) break\n    }\n\n    return count\n};\n```
['JavaScript']