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 Revisions

8 of 8
Commonmark migration

J, (削除) 31 (削除ここまで) (削除) 30 (削除ここまで) (削除) 14 (削除ここまで) (削除) 12 (削除ここまで) 11 bytes

[:;<@|.`</.

(削除) Ych. Too big. (削除ここまで)

Takes a matrix as input.

Explanation

J has an advantage here. There's a command called oblique (/.) which takes the oblique lines in turn and applies a verb to them. In this case I'm using a gerund to apply two verbs alternately: < (box) and <@|. (reverse and box). Then it's just a matter of unboxing everything using ; (raze).

Gareth
  • 11.4k
  • 1
  • 37
  • 86

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