MCPcopy Create free account
hub / github.com/codedecks-in/LeetCode-Solutions / isValid

Method isValid

Java/valid-sudoku.java:20–29  ·  view source on GitHub ↗
(ArrayList<Integer> arr)

Source from the content-addressed store, hash-verified

18*/
19class Solution {
20 public boolean isValid(ArrayList<Integer> arr){
21 int[] fre = new int[10];
22 for(int ele : arr){
23 fre[ele]++;
24 if(fre[ele] > 1){
25 return false;
26 }
27 }
28 return true;
29 }
30 public boolean isValidSudoku(char[][] board) {
31 for(int i=0; i<9; i++){
32 ArrayList<Integer> row = new ArrayList<>();

Callers 1

isValidSudokuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected