ANKUSH KUMARmackph.hashnode.dev·Aug 25, 2022Problem: Sudoku SolverWrite a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of the digits 1-9 must occur exactly once in each row. Each of the digits 1-9 must occur exactly once in each column...1 likeJava
ANKUSH KUMARmackph.hashnode.dev·Aug 19, 2022Problem: Combination Sum IIGiven a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination. ((Note: The...1 likeJava
ANKUSH KUMARmackph.hashnode.dev·Aug 14, 2022Problem: Rotate Imageclass Solution { public void rotate(int[][] matrix) { for (int col = 0; col < matrix[0].length; col++){ for (int row = 0; row < matrix.length/2; row++){ swap(matrix, row, col, matrix.length-row-1, col); ...1 like·34 readsJava