Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges Make my value binary

Sclipting, (UTF-16) 14 bytes 要감啃終丟併反 Explanation: Push input 要 While the top number is non-zero 감啃 Shift the top number by 1 bit and push both the bit and shifted result 終 End lo...

posted 3y ago by Moshi‭

Answer
#1: Initial revision by user avatar Moshi‭ · 2021-08-30T23:35:00Z (about 3 years ago)
# [Sclipting], [(UTF-16) 14 bytes][Byte count]

```
要감啃終丟併反
```

Explanation:

```text
Push input
要     While the top number is non-zero
 감啃  Shift the top number by 1 bit and push both the bit and shifted result 
終     End loop
丟併反 Drop leading zero, concatenate, and reverse
```

[Sclipting]: https://esolangs.org/wiki/Sclipting
[Byte count]: https://ethproductions.github.io/bytes/?e=utf-16&t=%E8%A6%81%EA%B0%90%E5%95%83%E7%B5%82%E4%B8%9F%E4%BD%B5%E5%8F%8D