old_version/solver.py
def validate_sudoku(self) -> int:
        """
        Checks if sudoku array is valid, i.e. if rows, columns or squares don't contain duplicated digits.
        :return: 0 if array is empty, 1 if is valid, -1 if invalid
        """
        if self.s.elements_count[0] == 81:
            return 0
        if not self.check_occurences():
            return -1
        return 1

        Checks if sudoku array is valid, i.e. if rows, columns or squares don't contain duplicated digits.
        :return: 0 if array is empty, 1 if is valid, -1 if invalid
        
Checks if sudoku array is valid, i.e. if rows, columns or squares don't contain duplicated digits.
Checks if sudoku array is valid i . e . if rows columns or squares don ' t contain duplicated digits .
def validate_sudoku(self) -> int:
        if self.s.elements_count[0] == 81:
            return 0
        if not self.check_occurences():
            return -1
        return 1
def validate_sudoku ( self ) -> int : if self . s . elements_count [ 0 ] == 81 : return 0 if not self . check_occurences ( ) : return - 1 return 1
Checks if sudoku array is valid, i.e.
Checks if sudoku array is valid i . e .
"""
        Checks if sudoku array is valid, i.e. if rows, columns or squares don't contain duplicated digits.
        :return: 0 if array is empty, 1 if is valid, -1 if invalid
        """
0 if array is empty, 1 if is valid, -1 if invalid
0 if array is empty 1 if is valid - 1 if invalid
self