You are given an array of n strings strs, where all strings are of equal length.
You may choose any set of column indices to delete. When a column index is deleted, the character at that index is removed from every string in strs.
Return the minimum number of column deletions required so that the remaining array of strings is in lexicographical order, meaning strs[$0$] \leq strs[$1$] \leq strs[$2$] \leq \dots \leq strs[n - $1$].
Constraints:
n strs.length
n
strs[i].length
strs[i] consists of lowercase English letters.
You are given an array of n strings strs, where all strings are of equal length.
You may choose any set of column indices to delete. When a column index is deleted, the character at that index is removed from every string in strs.
Return the minimum number of column deletions required so that the remaining array of strings is in lexicographical order, meaning strs[$0$] \leq strs[$1$] \leq strs[$2$] \leq \dots \leq strs[n - $1$].
Constraints:
n strs.length
n
strs[i].length
strs[i] consists of lowercase English letters.