davecom/ClassicComputerScienceProblemsInSwift

Missing same column check

faif opened this issue · 0 comments

faif commented

Two queens in the same column is also a constraint, so the following line needs to be added to generate a correct result:

if q1c == q2c { return false } // columns same?