Problem 944 · Easy

Delete Columns to Make Sorted

Count the columns of a grid of strings that are not in alphabetical order from top to bottom. The visual highlights each column and marks the ones that break the order.

Open the interactive visualisation