Skip to main content

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.

Required fields*

3
  • \$\begingroup\$ I'm not too good at Python either, but here it's already a bit shorter: 142 bytes. \$\endgroup\$ Commented Sep 15, 2021 at 14:31
  • \$\begingroup\$ Some different improvements make it 103 -- including using the observation that the & c only changes (1,1) to (0,0), which makes no difference if one is subtracting them. \$\endgroup\$ Commented Sep 15, 2021 at 15:26
  • \$\begingroup\$ @m90 I knew there had to be a better way to combine them all together, that's a great answer, I think my biggest failure was not really understanding the maths behind it. \$\endgroup\$ Commented Sep 15, 2021 at 17:43