Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

series, largest-series-product: clarify "consecutive" #200

Merged
merged 1 commit into from
Mar 13, 2016
Merged

series, largest-series-product: clarify "consecutive" #200

merged 1 commit into from
Mar 13, 2016

Conversation

petertseng
Copy link
Member

It was unclear whether "consecutive" meant consecutive in numerical
value
or simply positionally adjacent. Due to this problem's origin
in Project Euler, it was the latter.

To avoid any confusion this commit does the following:

  • Replace the word "consecutive" in .yml files with "contiguous"
  • Clarifies in the .md files that the series of digits only need be
    positionally adjacent, not consecutive in numerical value.
  • Uses examples in .md files that should make clear that numerical value
    is not important.

This should prevent any further confusion of the form expressed in the
two issues

This is the first subtask of #197.

series of 3 digits is 270 (9 * 5 * 6), and the largest product for a
series of 5 digits is 7560 (7 * 8 * 3 * 9 * 5).

Note that these series are only required to occupy *adjacent positions* in the original string; the digits need not be *numerically consecutive*.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap? Considering that the above lines are wrapped

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, wrap. I always read the readmes either by opening them in a text editor, or catting them out onto the command-line. I like the wrapping.

It was unclear whether "consecutive" meant consecutive in *numerical
value* or simply *positionally adjacent*. Due to this problem's origin
in Project Euler, it was the latter.

To avoid any confusion this commit does the following:
* Replace the word "consecutive" in .yml files with "contiguous"
* Clarifies in the .md files that the series of digits only need be
  positionally adjacent, not consecutive in numerical value.
* Uses examples in .md files that should make clear that numerical value
  is not important.

This should prevent any further confusion of the form expressed in the
two issues

* exercism/ruby#244
* exercism/ruby#262

This is the first subtask of #197.
@petertseng
Copy link
Member Author

wrapped to 72

kytrinyx added a commit that referenced this pull request Mar 13, 2016
series, largest-series-product: clarify "consecutive"
@kytrinyx kytrinyx merged commit f0aa7e1 into exercism:master Mar 13, 2016
@petertseng petertseng deleted the series branch March 13, 2016 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants