<awangdev>51. N-Queens_2.java
private List<String> createBoard(int[] columns){

        int n = columns.length;
        List<String> board = new ArrayList<>();
        for (int row = 0; row < n; row++) {
            StringBuffer sb = new StringBuffer();
            int queenCol = columns[row];
            for (int col = 0; col < n; col++) {
                sb.append(queenCol == col ? "Q" : ".");
            }
            board.add(sb.toString());
        }
        return board;
    }
private List < String > var_1 ( int [ ] var_2 ) {
  int var_4 = var_2 . length ;
  List < String > var_7 = new ArrayList < > ( ) ;
  for ( int var_9 = 0 ;
  var_9 < var_4 ;
  var_9 ++ ) {
    StringBuffer var_11 = new StringBuffer ( ) ;
    int var_12 = var_2 [ var_9 ] ;
    for ( int var_13 = 0 ;
    var_13 < var_4 ;
    var_13 ++ ) {
      var_11 . append ( var_12 == var_13 ? "Q" : "." ) ;
    }
    var_7 . add ( var_11 . toString ( ) ) ;
  }
  return var_7 ;
}
