2
def minDeletionSize(self, strs: List[str]) -> int:4
col_size = len(strs[0])5
# a b c d e f g h i j k l m n o p q r s t u v w x y z11
# removing the idx column13
strs[x] = strs[x][:idx] + strs[x][idx + 1 :]16
tmp = strs[0][: i + 1]21
if strs[j][: i + 1] < tmp:22
# previous element is larger ( unsorted )26
elif strs[j][: i + 1] > tmp:27
# previous element is smaller ( sorted )28
tmp = strs[j][: i + 1]31
# previous element is equal ( not clear )32
tmp = strs[j][: i + 1]35
if flag == True and similar == False:36
# all are sorted and we are ready to return ans39
elif flag == True and similar == True:40
# all are sorted but can't be decided for further columns. check for next col44
# unsorted column = removal46
# increment the answer and since we removed i th col decrement col_size