<awangdev>51. N-Queens_3.java
private boolean validate(List<Integer> list, int newColNum) {

        int newRowNum = list.size(); 
        for (int rowNum = 0; rowNum < list.size(); rowNum++) {
            int colNum = list.get(rowNum);
            if (colNum == newColNum || Math.abs(rowNum - newRowNum) == Math.abs(colNum - newColNum)) {
                return false;
            }
        }
        return true;
    }
private boolean var_0 ( List < Integer > var_3 , int var_4 ) {
  int var_6 = var_3 . size ( ) ;
  for ( int var_8 = 0 ;
  var_8 < var_3 . size ( ) ;
  var_8 ++ ) {
    int var_10 = var_3 . get ( var_8 ) ;
    if ( var_10 == var_4 || Math . abs ( var_8 - var_6 ) == Math . abs ( var_10 - var_4 ) ) {
      return false ;
    }
  }
  return true ;
}
