Skip to main content
1 of 2
ngn
  • 15.3k
  • 2
  • 43
  • 87

K (ngn/k), 17 bytes

{,/(,/,'/:)\x#,y}

Try it online!

ngn
  • 15.3k
  • 2
  • 43
  • 87