Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 239 characters in body
Source Link
FrownyFrog
  • 3.8k
  • 1
  • 15
  • 20

J, 12 bytes

[:>./8#.\.#:

Try it online!

 #: to binary
 8 \. remove consecutive groups of eight
 #. convert each result to decimal
 >./ maximum
[: do nothing, this lets me avoid parentheses

J, 12 bytes

[:>./8#.\.#:

Try it online!

J, 12 bytes

[:>./8#.\.#:

Try it online!

 #: to binary
 8 \. remove consecutive groups of eight
 #. convert each result to decimal
 >./ maximum
[: do nothing, this lets me avoid parentheses
Source Link
FrownyFrog
  • 3.8k
  • 1
  • 15
  • 20

J, 12 bytes

[:>./8#.\.#:

Try it online!

AltStyle によって変換されたページ (->オリジナル) /