Skip to main content
added 16 characters in body
Source Link

APL (Dyalog Unicode), 3838 34 bytesSBCS

f←{({(⍵,(0×⍵),⍵){⍺⍪⍵⍪⍺}⍵,⍵,⍵}⍣⍵⍣⎕)1 1⍴1} 

Output is a 2-dimensional array with 1 representing H and 0 representing space.

Try it online!

APL (Dyalog Unicode), 38 bytesSBCS

f←{({(⍵,(0×⍵),⍵){⍺⍪⍵⍪⍺}⍵,⍵,⍵}⍣⍵)1 1⍴1} 

Output is a 2-dimensional array with 1 representing H and 0 representing space.

Try it online!

APL (Dyalog Unicode), 38 34 bytesSBCS

({(⍵,(0×⍵),⍵){⍺⍪⍵⍪⍺}⍵,⍵,⍵}⍣⎕)1 1⍴1 

Output is a 2-dimensional array with 1 representing H and 0 representing space.

Try it online!

added 59 characters in body
Source Link

APL (Dyalog Unicode), 6938 bytesSBCS

f←{({(⍵,(0×⍵),⍵){⍺⍪⍵⍪⍺}⍵,⍵,⍵}⍣⍵)1 1⍴1} 

Output is a 2-dimensional array with 1 representing H and 0 representing space.   

Try it online!

APL (Dyalog), 69 bytes

f←{({(⍵,(0×⍵),⍵){⍺⍪⍵⍪⍺}⍵,⍵,⍵}⍣⍵)1 1⍴1} 

Output is a 2-dimensional array with 1 representing H and 0 representing space.  Try it online!

APL (Dyalog Unicode), 38 bytesSBCS

f←{({(⍵,(0×⍵),⍵){⍺⍪⍵⍪⍺}⍵,⍵,⍵}⍣⍵)1 1⍴1} 

Output is a 2-dimensional array with 1 representing H and 0 representing space. 

Try it online!

Source Link

APL (Dyalog), 69 bytes

f←{({(⍵,(0×⍵),⍵){⍺⍪⍵⍪⍺}⍵,⍵,⍵}⍣⍵)1 1⍴1} 

Output is a 2-dimensional array with 1 representing H and 0 representing space. Try it online!