Post History
jq, 48 bytes [while(.>0;./2|floor)]|map(.%2)|reverse|join("") Try it online! jq is the Language of the month for September! if the output is not required as per the question, join can be o...
Answer
#2: Post edited
- # [jq], 48 bytes
- [while(.>0;./2|floor)]|map(.%2)|reverse|join("")
- [Try it online!][TIO-kt4ax6bd]
- [jq]: https://stedolan.github.io/jq/
[TIO-kt4ax6bd]: https://tio.run/##yyr8/z@6PCMzJ1VDz87AWk/fqCYtJz@/SDO2JjexQENP1Uizpii1LLWoOLUmKz8zT0NJSfP/fyMA "jq – Try It Online"- jq is the Language of the month for September!
- if the output is not required as per the question, `join` can be omitted.
- # [jq], 48 bytes
- [while(.>0;./2|floor)]|map(.%2)|reverse|join("")
- [Try it online!][TIO-kt4ax6bd]
- [jq]: https://stedolan.github.io/jq/
- [TIO-kt4ax6bd]: https://jqplay.org/s/A4QBPwOyaB
- jq is the Language of the month for September!
- if the output is not required as per the question, `join` can be omitted.
#1: Initial revision
# [jq], 48 bytes [while(.>0;./2|floor)]|map(.%2)|reverse|join("") [Try it online!][TIO-kt4ax6bd] [jq]: https://stedolan.github.io/jq/ [TIO-kt4ax6bd]: https://tio.run/##yyr8/z@6PCMzJ1VDz87AWk/fqCYtJz@/SDO2JjexQENP1Uizpii1LLWoOLUmKz8zT0NJSfP/fyMA "jq – Try It Online" jq is the Language of the month for September! if the output is not required as per the question, `join` can be omitted.