Skip to main content
Commonmark migration
Source Link

#Pyth, 6 bytes

Pyth, 6 bytes

.e@_Bb

Try it here!

  • .e ~ Enumerated map. k is the index, b is the current element.

  • _Bb ~ Bifurcate b with its reverse.

  • @ ~ Modular index in ^ with k.

#Pyth, 6 bytes

.e@_Bb

Try it here!

  • .e ~ Enumerated map. k is the index, b is the current element.

  • _Bb ~ Bifurcate b with its reverse.

  • @ ~ Modular index in ^ with k.

Pyth, 6 bytes

.e@_Bb

Try it here!

  • .e ~ Enumerated map. k is the index, b is the current element.

  • _Bb ~ Bifurcate b with its reverse.

  • @ ~ Modular index in ^ with k.

Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

#Pyth, 6 bytes

.e@_Bb

Try it here!

  • .e ~ Enumerated map. k is the index, b is the current element.

  • _Bb ~ Bifurcate b with its reverse.

  • @ ~ Modular index in ^ with k.