Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#MATL , 48 bytes

MATL , 48 bytes

tZyyX:UX>*Yat48-tt0>*3#fbbhb~2#fh-*s7M+'X'wZ}4$(

The background character is space. Input is a 2D char array with rows separated by semicolons. So the tests cases have respective inputs:

[' 2'; ' 0 '; ' 3 ']
[' 1 '; ' '; '1 0']
['0 1 1']
[' 2 0 1 ']
[' 3'; ' '; ' 0 '; ' '; ' '; '2 ']
['90'; ' 8']

The output includes a significant amount of padding whitespace.

Try it online!

#MATL , 48 bytes

tZyyX:UX>*Yat48-tt0>*3#fbbhb~2#fh-*s7M+'X'wZ}4$(

The background character is space. Input is a 2D char array with rows separated by semicolons. So the tests cases have respective inputs:

[' 2'; ' 0 '; ' 3 ']
[' 1 '; ' '; '1 0']
['0 1 1']
[' 2 0 1 ']
[' 3'; ' '; ' 0 '; ' '; ' '; '2 ']
['90'; ' 8']

The output includes a significant amount of padding whitespace.

Try it online!

MATL , 48 bytes

tZyyX:UX>*Yat48-tt0>*3#fbbhb~2#fh-*s7M+'X'wZ}4$(

The background character is space. Input is a 2D char array with rows separated by semicolons. So the tests cases have respective inputs:

[' 2'; ' 0 '; ' 3 ']
[' 1 '; ' '; '1 0']
['0 1 1']
[' 2 0 1 ']
[' 3'; ' '; ' 0 '; ' '; ' '; '2 ']
['90'; ' 8']

The output includes a significant amount of padding whitespace.

Try it online!

added 11 characters in body
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

#MATL, 48 bytes

tZyyX:UX>*Yat48-tt0>*3#fbbhb~2#fh-*s7M+'X'wZ}4$(

The background character is space. Input is a 2D char array with rows separated by semicolons. So the tests cases have respective inputs:

[' 2'; ' 0 '; ' 3 ']
[' 1 '; ' '; '1 0']
['0 1 1']
[' 2 0 1 ']
[' 3'; ' '; ' 0 '; ' '; ' '; '2 ']
['90'; ' 8']

This addsThe output includes a significant amount of padding whitespace.

Try it online!

#MATL, 48 bytes

tZyyX:UX>*Yat48-tt0>*3#fbbhb~2#fh-*s7M+'X'wZ}4$(

The background character is space. Input is a 2D char array with rows separated by semicolons. So the tests cases have respective inputs

[' 2'; ' 0 '; ' 3 ']
[' 1 '; ' '; '1 0']
['0 1 1']
[' 2 0 1 ']
[' 3'; ' '; ' 0 '; ' '; ' '; '2 ']
['90'; ' 8']

This adds a significant amount of padding whitespace.

Try it online!

#MATL, 48 bytes

tZyyX:UX>*Yat48-tt0>*3#fbbhb~2#fh-*s7M+'X'wZ}4$(

The background character is space. Input is a 2D char array with rows separated by semicolons. So the tests cases have respective inputs:

[' 2'; ' 0 '; ' 3 ']
[' 1 '; ' '; '1 0']
['0 1 1']
[' 2 0 1 ']
[' 3'; ' '; ' 0 '; ' '; ' '; '2 ']
['90'; ' 8']

The output includes a significant amount of padding whitespace.

Try it online!

Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

#MATL, 48 bytes

tZyyX:UX>*Yat48-tt0>*3#fbbhb~2#fh-*s7M+'X'wZ}4$(

The background character is space. Input is a 2D char array with rows separated by semicolons. So the tests cases have respective inputs

[' 2'; ' 0 '; ' 3 ']
[' 1 '; ' '; '1 0']
['0 1 1']
[' 2 0 1 ']
[' 3'; ' '; ' 0 '; ' '; ' '; '2 ']
['90'; ' 8']

This adds a significant amount of padding whitespace.

Try it online!

AltStyle によって変換されたページ (->オリジナル) /