@@ -0,0 +1,468 @@
+%0D%0Apublic class _240SearchA2DMatrixII %7B%0D%0A    public boolean searchMatrix(int%5B%5D%5B%5D matrix, int target) %7B%0D%0A    %09if (matrix == null %7C%7C matrix.length == 0 %7C%7C matrix%5B0%5D.length == 0) return false;%0D%0A        int x = 0;%0D%0A        int y = matrix%5B0%5D.length - 1;%0D%0A        while (x %3C matrix.length && y %3E= 0) %7B%0D%0A        %09int n = matrix%5Bx%5D%5By%5D;%0D%0A        %09if (n == target) return true;%0D%0A        %09else if (n %3C target) x++;%0D%0A        %09else y--;%0D%0A        %7D%0D%0A        return false;%0D%0A    %7D%0D%0A%7D%0D%0A

Add 240 solution