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 »

Review Suggested Edit

You can't approve or reject suggested edits because you haven't yet earned the Edit Posts ability.

Approved.
This suggested edit was approved and applied to the post over 1 year ago by Moshi‭.

21 / 255
  • ## Sclipting, (UTF-16) [86 bytes][bytecount]
  • ```text
  • 標갠 관上가①要❶❹剩걉눑감⓶重右갰雙⓷加⓶❸分終⓷棄終并❶訂乾⓶折❷同終長괐縮⒈棄丟
  • ```
  • Explanation:
  • ```text
  • Input n
  • 갠 관上 for b from 2 to 16
  • 가 s = 0
  • ① n' = n
  • 要 while n' is not 0
  • ❶❹剩 x = n' mod b
  • 걉눑감 byte array 00 00 01 00 10 01 01 10 00 01 00 01 00 00 00 01
  • ⓶重右 shift right by 2x
  • 갰雙 bitwise & with 0b11
  • ⓷加 add to s
  • ⓶❸分 n' = n' // b
  • ⓷棄
  • ❶訂乾 Get the max value
  • ⓶折❷同終長괐縮⒈棄丟 Get the index of the max value
  • ```
  • [bytecount]: ethproductions.github.io/bytes/?e=utf-16&t=標갠%20관上가①要❶❹剩걉눑감⓶重右갰雙⓷加⓶❸分終⓷棄終并❶訂乾⓶折❷同終長괐縮⒈棄丟
  • ## Sclipting, (UTF-16) [86 bytes][bytecount]
  • ```text
  • 標갠 관上가①要❶❹剩걉눑감⓶重右갰雙⓷加⓶❸分終⓷棄終并❶訂乾⓶折❷同終長괐縮⒈棄丟
  • ```
  • Explanation:
  • ```text
  • Input n
  • 갠 관上 for b from 2 to 16
  • 가 s = 0
  • ① n' = n
  • 要 while n' is not 0
  • ❶❹剩 x = n' mod b
  • 걉눑감 byte array 00 00 01 00 10 01 01 10 00 01 00 01 00 00 00 01
  • ⓶重右 shift right by 2x
  • 갰雙 bitwise & with 0b11
  • ⓷加 add to s
  • ⓶❸分 n' = n' // b
  • ⓷棄
  • ❶訂乾 Get the max value
  • ⓶折❷同終長괐縮⒈棄丟 Get the index of the max value
  • ```
  • [bytecount]: https://ethproductions.github.io/bytes/?e=utf-16&t=標갠%20관上가①要❶❹剩걉눑감⓶重右갰雙⓷加⓶❸分終⓷棄終并❶訂乾⓶折❷同終長괐縮⒈棄丟

Suggested over 1 year ago by Razetime‭