← ALL NOTES
Array

955. Delete Columns to Make Sorted II

Same grid-of-strings setup as #944, but now the goal is that the remaining rows read in lexicographically non-decreasing order top to bottom (comparing whole rows). Minimise deleted columns. This is…

Loading…