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*

5
  • \$\begingroup\$ If I do my answer in 1-index, can I treat the test cases as 1-indexed as well? \$\endgroup\$ Commented Mar 13, 2020 at 17:14
  • \$\begingroup\$ @JeffZeitlin of course! \$\endgroup\$ Commented Mar 13, 2020 at 17:15
  • \$\begingroup\$ You should leave the IO formats as the default rather than override them. If you meant to re-iterate the defaults, then you left a couple out (like a few of the options for functions) \$\endgroup\$ Commented Mar 14, 2020 at 1:51
  • \$\begingroup\$ @JoKing I was pretty confident I had seen a fair share of sequence challenges where the 3 standard outputs were these. What did I leave out? \$\endgroup\$ Commented Mar 14, 2020 at 6:33
  • 1
    \$\begingroup\$ I may be taking indefinitely print the sequence too literally, but the tag wiki for sequence allows returns an infinite lazy iterator/generator \$\endgroup\$ Commented Mar 14, 2020 at 10:51