You are given an array of strs, where all strings have equal length.
You may choose a set of column indices to delete. After deleting the characters at the selected indices from every string, each individual string in strs must be in nondecreasing lexicographical order.
Return the minimum number of column deletions required so that every string in strs satisfies this condition.
Constraints:
n strs.length
n
strs[i].length
strs[i] consists of lowercase English letters.
You are given an array of strs, where all strings have equal length.
You may choose a set of column indices to delete. After deleting the characters at the selected indices from every string, each individual string in strs must be in nondecreasing lexicographical order.
Return the minimum number of column deletions required so that every string in strs satisfies this condition.
Constraints:
n strs.length
n
strs[i].length
strs[i] consists of lowercase English letters.