Delete Columns to Make Sorted
Asked at Amazon · Coding Questions · Difficulty: Easy
Given an array `strs` of equal-length lowercase strings, return the minimum number of columns to delete so that every remaining column is sorted non-decreasingly from top to bottom.
Loading the problem…