Problem 960 · Hard

Delete Columns to Make Sorted III

Keep the largest set of columns in which every row reads in sorted order, found by a longest-chain DP over columns.

Open the interactive visualisation