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

added 96 characters in body
Source Link
Jonah
  • 34.1k
  • 4
  • 41
  • 95

J, 3636 31 bytes

1#.(0,2=&{.&>/\]\[)*1#.(,@E.~,:)&>/@,:

Try it online! Try it online!

-5 stealing dominic's idea of taking the matrix lines as a single space-delimited string

J, 36 bytes

1#.(0,2=&{.&>/\])*1#.(,@E.~,:)&>/@,:

Try it online!

J, 36 31 bytes

1#.(0,2=&{.&>/\[)*1#.,@E.&>/@,:

Try it online!

-5 stealing dominic's idea of taking the matrix lines as a single space-delimited string

Source Link
Jonah
  • 34.1k
  • 4
  • 41
  • 95

J, 36 bytes

1#.(0,2=&{.&>/\])*1#.(,@E.~,:)&>/@,:

Try it online!

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