Skip to main content
added 1 character in body
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

MATL, 2424 23 bytes

:Q+"@X+"@X!XJ_JXzJ32>S(c@_X! 

Order is URDL, 01-based. So (as in the example in the challenge)1 is Ù, 2isR` etc.

Inputs are: number of times, initial direction, char matrix (using ; as row separator).

Try it online!Try it online!

MATL, 24 bytes

:Q+"@X!XJ_JXzJ32>S(c@_X! 

Order is URDL, 0-based (as in the example in the challenge).

Inputs are: number of times, initial direction, char matrix (using ; as row separator).

Try it online!

MATL, 24 23 bytes

:+"@X!XJ_JXzJ32>S(c@_X! 

Order is URDL, 1-based. So 1 is Ù, 2isR` etc.

Inputs are: number of times, initial direction, char matrix (using ; as row separator).

Try it online!

added 1 character in body
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

MATL, 24 bytes

:Q+"@X!XJ_JXzJ32>S(c@_X! 

Order is URDL, 0-based; that is, asbased (as in the example in the challenge).

Inputs are: number of times, initial direction, char matrix (using ; as row separator).

Try it online!

MATL, 24 bytes

:Q+"@X!XJ_JXzJ32>S(c@_X! 

Order is URDL, 0-based; that is, as in the example in the challenge.

Inputs are: number of times, initial direction, char matrix (using ; as row separator).

Try it online!

MATL, 24 bytes

:Q+"@X!XJ_JXzJ32>S(c@_X! 

Order is URDL, 0-based (as in the example in the challenge).

Inputs are: number of times, initial direction, char matrix (using ; as row separator).

Try it online!

Post Undeleted by Luis Mendo
Post Deleted by Luis Mendo
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

MATL, 24 bytes

:Q+"@X!XJ_JXzJ32>S(c@_X! 

Order is URDL, 0-based; that is, as in the example in the challenge.

Inputs are: number of times, initial direction, char matrix (using ; as row separator).

Try it online!