package leetcode;

/**
 * https://leetcode.com/problems/delete-columns-to-make-sorted/
 */
public class Problem944 {
    public int minDeletionSize(String[] A) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem944 prob = new Problem944();
    }
}

@@ -167,38 +167,90 @@
     
-// TODO%0A        return
+int maxRow = A.length;%0A        int maxCol = A.length %3E 0 ? A%5B0%5D.length() :
  0;%0A    
 %7D%0A%0A 
@@ -249,98 +249,314 @@
     
-%7D%0A%0A
     
-public static void main(String%5B%5D args) %7B%0A        Problem944 prob = new Problem944()
+int count = 0;%0A        for (int col = 0; col %3C maxCol; col++) %7B%0A            for (int row = 1; row %3C maxRow; row++) %7B%0A                if (A%5Brow - 1%5D.charAt(col) %3E A%5Brow%5D.charAt(col)) %7B%0A                    count++;%0A                    break;%0A                %7D%0A            %7D%0A        %7D%0A        return count
 ;%0A  

Solve problem 944