A
A
Alexey Yakovlev2021-07-13 22:16:24
typescript
Alexey Yakovlev, 2021-07-13 22:16:24

How to remove repeated numbers (sudoku)?

I'm making a sudoku game. I need to check that there are no repeating digits vertically, horizontally and in the area, which algorithm is right for me (preferably implemented on js / ts)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alice, 2021-07-13
@aleshaykovlev

Hold on, it's better to look at other people's work first

A
Aetae, 2021-07-13
@Aetae

An abstract question, the answer depends on your algorithm and what you generally need.
For good, you just need to not generate duplicate numbers initially, and not remove them after the fact.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question