Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我有一个生成的数独。我的问题是应该从中删除哪些字段,以便之后可以解决?
写一个求解器,然后:
backup=sudoku.copy() loop: removeRandomField() s=countPossibleSolutions() if(s>1) return backup goto loop