JAVA SOLUTION | | 100% FASTER
\nclass Solution {\n    public int minDeletionSize(String[] strs) {\n       boolean[] sorted = new boolean[strs.length];\n        int res = 0;\n        for(int 
```\nclass Solution {\n    public int minDeletionSize(String[] strs) {\n       boolean[] sorted = new boolean[strs.length];\n        int res = 0;\n        for(int i = 0;i<strs[0].length();i++){\n            int j = 0;\n           for(;j<strs.length-1;j++){\n              if(!sorted[j]&&strs[j].charAt(i)>strs[j+1].charAt(i)){\n                  res++;\n                  break;\n              }  \n            }\n            if(j<strs.length-1){\n                continue;\n            }\n            j = 0;\n            for(;j<strs.length-1;j++){\n                if(strs[j].charAt(i)<strs[j+1].charAt(i)){\n                    sorted[j] = true;\n                }\n            }\n        }\n        return res;\n}\n}\n```
['Java']