Hello,
Can someone explain how to interpret when an argument is passed to the arr.sum function?
For example: In this solution to the N-Queen, problem, how to interpret:
queen_b.sum(b) with (i+b.index<N? int’(queen_b[b.index][i+b.index]) : 0) <= 1;
Is “b” considered an iterator?
This constraint is pretty clear (we iterate each row)
queen_b[i].sum() with (int’(item)) == 1;
Would highly appreciate an explanation.
Thanks!