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

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

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).

#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).

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).

edited body
Source Link
Gareth
  • 11.4k
  • 1
  • 37
  • 86

#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 ; (linkraze).

#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 ; (link).

#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).

added 19 characters in body
Source Link
Gareth
  • 11.4k
  • 1
  • 37
  • 86

#J, (削除) 31 (削除ここまで) (削除) 30 (削除ここまで) (削除) 14 (削除ここまで) 12(削除) 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 ; (link).

#J, (削除) 31 (削除ここまで) (削除) 30 (削除ここまで) (削除) 14 (削除ここまで) 12 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 ; (link).

#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 ; (link).

added explanation
Source Link
Gareth
  • 11.4k
  • 1
  • 37
  • 86
Loading
added 18 characters in body
Source Link
Gareth
  • 11.4k
  • 1
  • 37
  • 86
Loading
added 21 characters in body
Source Link
Gareth
  • 11.4k
  • 1
  • 37
  • 86
Loading
deleted 73 characters in body
Source Link
Gareth
  • 11.4k
  • 1
  • 37
  • 86
Loading
Source Link
Gareth
  • 11.4k
  • 1
  • 37
  • 86
Loading

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