Valid Sudoku rows
easyProblem solving10 XP
grid is a list of rows of digits 0–9, where 0 means empty. Return whether no row repeats a non-zero digit.
Examples
- Input: grid = [[5, 3, 0, 0], [6, 0, 0, 1]]Output: true
- Input: grid = [[1, 2, 1]]Output: false
Examples use JSON: true/false/null are True/False/None in Python.