/** Return true if queen placement q[n] does not conflict with other queens q[0] through q[n-1] */ isConsistent(List q, int n) { for (int i=0; i