Skip to main content
Post Undeleted by l4m2
added 6 characters in body
Source Link
l4m2
  • 28.4k
  • 2
  • 25
  • 103

JavaScript (Node.js)JavaScript (V8), 90131 bytes

[].fill.constructor`n$constructor`M${`for(i\x3Dn\x3biN\x3D1\x3bM\x3bn-N||-->2|'01'[n]\x3b\x29n\x2fiM-print(n\x29\x29for(n\x3Di\x3DN-\x3D-1\x3bi-->2\x3b\x29n\x2fi-~~[n\x2fi]||n.pop\`\``--`}`

Try it online!Try it online!

JavaScript (Node.js), 90 bytes

[].fill.constructor`n${`for(i\x3Dn\x3bi-->2|'01'[n]\x3b\x29n\x2fi-~~[n\x2fi]||n.pop\`\``}`

Try it online!

JavaScript (V8), 131 bytes

[].fill.constructor`M${`for(N\x3D1\x3bM\x3bn-N||--M-print(n\x29\x29for(n\x3Di\x3DN-\x3D-1\x3bi-->2\x3b\x29n\x2fi-~~[n\x2fi]||n--`}`

Try it online!

Post Deleted by l4m2
Source Link
l4m2
  • 28.4k
  • 2
  • 25
  • 103

JavaScript (Node.js), 90 bytes

[].fill.constructor`n${`for(i\x3Dn\x3bi-->2|'01'[n]\x3b\x29n\x2fi-~~[n\x2fi]||n.pop\`\``}`

Try it online!