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
  • \$\begingroup\$ Limits/bounds?? \$\endgroup\$ Commented May 16, 2011 at 5:35
  • \$\begingroup\$ I'm not really concerned with limits and bounds, but if it's important to you, do the algorithm assuming the input will be no more than 8, and we'll pretend it works for higher numbers. As I said, I'm interested in the abstract mathematical algorithm, not the details of a particular language's integer limitations. \$\endgroup\$ Commented May 16, 2011 at 12:57
  • 1
    \$\begingroup\$ Maybe it is more open, when we say: output a(1), ... a(n) instead of return something, like an array of ... \$\endgroup\$ Commented May 17, 2011 at 23:33
  • 1
    \$\begingroup\$ I've edited the challenge to be slightly more up to date, as well as include an example and some relevant tags. Feel free to revert any changes you dislike \$\endgroup\$ Commented Apr 21, 2021 at 22:52