Skip to main content
added 72 characters in body
Source Link
jayprich
  • 421
  • 2
  • 8

J,  40 37  3732 bytes

my 40 byte expression (1), improved below

u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47

(1)u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47 thanks to +Galen Ivanov & +Conor O'Brien for the ideas in their solutions

shorter version including37 included echo statementecho u:32+|.(~.(>:*+:@[-])"0 _])|i:47

echo u:32+|.(~.(>:*+:@[*[+-])"0 _]"{])|i:47

TIO incorporating @FrownyFrog tips from comments

TIO

J,  40  37 bytes

my 40 byte expression (1), improved below

u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47

(1) thanks to +Galen Ivanov & +Conor O'Brien for the ideas in their solutions

shorter version including echo statement

echo u:32+|.(~.(>:*+:@[-])"0 _])|i:47

TIO

J,  40 37 32 bytes

40 expression u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47 thanks to +Galen Ivanov & +Conor O'Brien for the ideas in their solutions

37 included echo echo u:32+|.(~.(>:*+:@[-])"0 _])|i:47

echo u:32+|.(~.(>:*[+-)"{])|i:47

incorporating @FrownyFrog tips from comments

TIO

added new much shorter version giving 48 x 95 cells
Source Link
jayprich
  • 421
  • 2
  • 8

J, 40 40  37 bytes

output is from evaluating thismy 40 byte expression (1), e.g in a replimproved below

u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47

TIO

(1) thanks to +Galen Ivanov & +Conor O'Brien for the ideas in their solutions

shorter version including echo statement

echo u:32+|.(~.(>:*+:@[-])"0 _])|i:47

TIO

J, 40 bytes

output is from evaluating this expression, e.g in a repl

u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47

TIO

thanks to +Galen Ivanov & +Conor O'Brien for the ideas in their solutions

J,  40  37 bytes

my 40 byte expression (1), improved below

u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47

(1) thanks to +Galen Ivanov & +Conor O'Brien for the ideas in their solutions

shorter version including echo statement

echo u:32+|.(~.(>:*+:@[-])"0 _])|i:47

TIO

Source Link
jayprich
  • 421
  • 2
  • 8

J, 40 bytes

output is from evaluating this expression, e.g in a repl

u:30+2>.(+:@i.@(2&+)(-*(>+:))"0 _|@i:)47

TIO

thanks to +Galen Ivanov & +Conor O'Brien for the ideas in their solutions