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

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Draft saved
Draft discarded
Cancel
8
  • \$\begingroup\$ Not that it affects the statement of the challenge but don’t rule 28 and 199 produce the same result for both 1 1 0 and 0 1 0 and not inverse results? I.e. the 2nd and 5th bits are the same. \$\endgroup\$ Commented Aug 26, 2023 at 5:52
  • \$\begingroup\$ @doug I don't understand what you mean, sorry. Counting the leftmost / most significant bit as the first bit, the 2nd bit of 28 is 0 and the 2nd bit of 199 is 1. \$\endgroup\$ Commented Aug 26, 2023 at 12:16
  • \$\begingroup\$ However you mean to count if you line up the binary representation some bits in the same position agree. \$\endgroup\$ Commented Aug 26, 2023 at 12:37
  • \$\begingroup\$ By "reverse and flip" I mean that abcdefgh becomes HGFEDCBA, if uppercase means NOT. You have to invert all the output colors (0 ↔ 1) but also the input colors (which happens to correspond to reversing the bit order). \$\endgroup\$ Commented Aug 26, 2023 at 12:50
  • 1
    \$\begingroup\$ Maybe to see why this works, you can literally invert the image i.sstatic.net/02nbY.png — now the "black black black" rule is all the way on the right, "black black white" is to its left, etc and to restore the original order we would have to exactly reverse the 8 boxes. \$\endgroup\$ Commented Aug 26, 2023 at 12:54

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