Skip to main content
added 4 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
  • Output may be through STDOUT or an argument returned by a function. In this case it may be a string with newlines, a 2D character array or an array of strings.

  • You can consistently choose any two characters for representing the board.

  • You can consistently choose the direction of growth. That is, instead of the above representations (which grow downward and rightward), you can produce any of its reflected or rotated versions.

  • Trailing or leading space is allowed (if output is through STDOUT), as long as space is not one of the two characters used for the board.

  • You can optionally use "\$0\$-indexed" input; that is, take as input \$S-1\$, which specifies a board with \$S\$ layers.

  • You can consistently choose any two characters for representing the board.

  • You can consistently choose the direction of growth. That is, instead of the above representations (which grow downward and rightward), you can produce any of its reflected or rotated versions.

  • Trailing or leading space is allowed, as long as space is not one of the two characters used for the board.

  • You can optionally use "\$0\$-indexed" input; that is, take as input \$S-1\$, which specifies a board with \$S\$ layers.

  • Output may be through STDOUT or an argument returned by a function. In this case it may be a string with newlines, a 2D character array or an array of strings.

  • You can consistently choose any two characters for representing the board.

  • You can consistently choose the direction of growth. That is, instead of the above representations (which grow downward and rightward), you can produce any of its reflected or rotated versions.

  • Trailing or leading space is allowed (if output is through STDOUT), as long as space is not one of the two characters used for the board.

  • You can optionally use "\$0\$-indexed" input; that is, take as input \$S-1\$, which specifies a board with \$S\$ layers.

added 4 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

Output: an ASCII-art representation of a board with \$S\$ layers.

Output: an ASCII representation of a board with \$S\$ layers.

Output: an ASCII-art representation of a board with \$S\$ layers.

added 8 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

Input: a positive integer \$S\$ representing the number of layers in the board. If you prefer, you may also get \$S-1\$ instead of \$S\$ as input (0\$0\$-indexed); see below.

  • You can consistently choose any two characters for representing the board.

  • You can consistently choose the direction of growth. That is, instead of the above representations (which grow downward and rightward), you can produce any of its reflected ofor rotated versions.

  • Trailing or leading space is allowed, as long as space is not one of the two characters used for the board.

  • You can optionally use "0\$0\$-indexed" input; that is, take as input \$S-1\$, which specifies a board with \$S\$ layers.

Input: a positive integer \$S\$ representing the number of layers in the board. If you prefer, you may also get \$S-1\$ instead of \$S\$ as input (0-indexed); see below.

  • You can consistently choose any two characters for representing the board.

  • You can consistently choose the direction of growth. That is, instead of the above representations (which grow downward and rightward), you can produce any of its reflected of rotated versions.

  • Trailing or leading space is allowed, as long as space is not one of the two characters used for the board.

  • You can optionally use "0-indexed" input; that is, take as input \$S-1\$, which specifies a board with \$S\$ layers.

Input: a positive integer \$S\$ representing the number of layers in the board. If you prefer, you may also get \$S-1\$ instead of \$S\$ as input (\$0\$-indexed); see below.

  • You can consistently choose any two characters for representing the board.

  • You can consistently choose the direction of growth. That is, instead of the above representations (which grow downward and rightward), you can produce any of its reflected or rotated versions.

  • Trailing or leading space is allowed, as long as space is not one of the two characters used for the board.

  • You can optionally use "\$0\$-indexed" input; that is, take as input \$S-1\$, which specifies a board with \$S\$ layers.

added 158 characters in body
Source Link
flawr
  • 43.9k
  • 7
  • 104
  • 249
Loading
added 139 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
added 139 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
added 75 characters in body
Source Link
Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122
Loading
Became Hot Network Question
edited body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
added 213 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
deleted 1 character in body
Source Link
flawr
  • 43.9k
  • 7
  • 104
  • 249
Loading
fixed typos
Source Link
Arnauld
  • 197.6k
  • 20
  • 179
  • 649
Loading
edited body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
deleted 2 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
deleted 2 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading