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*

4
  • 1
    \$\begingroup\$ -1 3 2 roll exp is a fair bit shorter than exch 2 mod 2 mul 1 sub. \$\endgroup\$ Commented Mar 27, 2017 at 9:52
  • \$\begingroup\$ @PeterTaylor So it is! :) I forgot about exp :oops: However, it returns a float, and I think I need to output an integer to conform to the question. \$\endgroup\$ Commented Mar 27, 2017 at 10:30
  • 1
    \$\begingroup\$ I think you can still chuck in a cvi and make a saving. (Note: untested, but from reading the doc I think it should work). \$\endgroup\$ Commented Mar 27, 2017 at 10:38
  • \$\begingroup\$ @PeterTaylor Yes, cvi works, and it's still shorter than my previous version. \$\endgroup\$ Commented Mar 27, 2017 at 11:04