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\$ Nice job! Quite similar to the original solution. \$\endgroup\$ Commented Mar 8, 2017 at 22:55
  • 5
    \$\begingroup\$ not bool(reversed(str(bin(N))).index('1'))... I think that's the most absurd way I've seen anyone do a N%2 operation. \$\endgroup\$ Commented Mar 9, 2017 at 7:29
  • 3
    \$\begingroup\$ @StewieGriffin When life gives you lemons but no water or sugar, you just have to eat them raw. :D \$\endgroup\$ Commented Mar 9, 2017 at 14:24