Skip to main content
1 of 2
recursive
  • 10.4k
  • 20
  • 36

Stax, 14 bytes

ù╣π¼Y♣w♪∞•¬╟:"

Run and debug it

For empty inputs, this program takes [0] instead, as allowed by a clarifying comment.

recursive
  • 10.4k
  • 20
  • 36