79610042

Date: 2025-05-07 07:58:30
Score: 1.5
Natty:
Report link

A faster way to solve this problem is to use set operations to check what numbers already exist in a certain row/column/box instead of always iterating over them.

You could start by iterating over the entire board, constructing a set for each row/column/box, and then use a similar backtracking algorithm that uses those sets to check if a value at a certain position is valid.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kaethar