Search
⌘K

Leetcode 944. Delete Columns to Make Sorted

Given an array of equal-length strings forming a grid, count how many column indices contain characters that are not sorted lexicographically from top to bottom (those columns must be deleted) and return that count.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.