@@ -0,0 +1,1205 @@
+class Solution %7B%0A    /**%0A      * @param board: the board%0A        @return: wether the Sudoku is valid%0A      */%0A    %0A    public boolean isValidSudoku(char%5B%5D%5B%5D board) %7B%0A        if (board==null %7C%7C board.length==0 %7C%7C board%5B0%5D.length == 0)%7B%0A            return false;%0A        %7D%0A        int rows = board.length;%0A        int cols = board%5B0%5D.length;%0A        %0A        // check rows%0A        for(int i=0; i %3C rows; i++) %7B%0A            HashSet%3CCharacter%3E set = new HashSet%3CCharacter%3E();%0A            for (int j=0; j %3C cols; j++) %7B%0A                char c = board%5Bi%5D%5Bj%5D;%0A                if (c != '.') %7B%0A                    if (set.contains(c)) %7B%0A                        return false;%0A                    %7D%0A                    set.add(c);%0A                %7D%0A            %7D%0A        %7D%0A        %0A        for(int i=0; i %3C rows; i++) %7B%0A            HashSet%3CCharacter%3E set = new HashSet%3CCharacter%3E();%0A            for (int j=0; j %3C cols; j++) %7B%0A                char c = board%5Bj%5D%5Bi%5D;%0A                if (c != '.') %7B%0A                    if (set.contains(c)) %7B%0A                        return false;%0A                    %7D%0A                    set.add(c);%0A                %7D%0A            %7D%0A        %7D%0A        %0A        return true;%0A    %7D%0A    %0A%7D%0A

Create ValidSudoku.java