Skip to main content
deleted 1 character in body
Source Link
tsh
  • 35.6k
  • 2
  • 34
  • 129

JavaScript (Node.js), 2928 bytes

f=([,y=''y,...z])=>y&&y+y+f=>y?y+y+f(z):''

Try it online!Try it online!

JavaScript (Node.js), 29 bytes

f=([,y='',...z])=>y&&y+y+f(z)

Try it online!

JavaScript (Node.js), 28 bytes

f=([,y,...z])=>y?y+y+f(z):''

Try it online!

Source Link
tsh
  • 35.6k
  • 2
  • 34
  • 129

JavaScript (Node.js), 29 bytes

f=([,y='',...z])=>y&&y+y+f(z)

Try it online!