Brute Force | Beginner friendly | Easy to Understand | C++ ✔
Easy to understand, must upvote \uD83D\uDE43\n\n\nclass Solution {\npublic:\n    int getIndex(string str1, string str2){\n        int false_index = -1;\n       
* Easy to understand, must upvote \uD83D\uDE43\n\n```\nclass Solution {\npublic:\n    int getIndex(string str1, string str2){\n        int false_index = -1;\n        for (int i = 0; i < str1.length(); i++){\n            if(str1[i] > str2[i]){\n                false_index = i;\n                break;\n            }\n        }\n        return false_index;\n    }\n    \n    void removeFalseIndex(vector<string> &strs, int false_index){\n        for(int i = 0; i < strs.size(); i++){\n            string newStr = "";\n            for(int j = 0; j < strs[i].length(); j++){\n                if(j != false_index)\n                    newStr += strs[i][j];\n            }\n            strs[i] = newStr;\n        }\n    }\n    \n    int minDeletionSize(vector<string> &strs) {\n        int opr = 0;\n        for (int i = 1; i < strs.size(); i++){\n            if(strs[i-1] > strs[i]){\n                int false_index = getIndex(strs[i-1], strs[i]);\n                removeFalseIndex(strs, false_index);\n                i = 0; opr += 1;\n            }\n        }\n        return opr;\n    }\n};\n```
['C']