Sha256: e002584fb495f6db6cbd03d24e6571e932f73282c71ee838bf53e6ae0a09502c

Contents?: true

Size: 496 Bytes

Versions: 45

Compression:

Stored size: 496 Bytes

Contents

Given a string of digits, output all the contiguous substrings of length `n` in
that string in the order that they appear.

For example, the string "49142" has the following 3-digit series:

- "491"
- "914"
- "142"

And the following 4-digit series:

- "4914"
- "9142"

And if you ask for a 6-digit series from a 5-digit string, you deserve
whatever you get.

Note that these series are only required to occupy *adjacent positions*
in the input; the digits need not be *numerically consecutive*.

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
trackler-2.2.1.180 problem-specifications/exercises/series/description.md
trackler-2.2.1.179 problem-specifications/exercises/series/description.md
trackler-2.2.1.178 problem-specifications/exercises/series/description.md
trackler-2.2.1.177 problem-specifications/exercises/series/description.md
trackler-2.2.1.176 problem-specifications/exercises/series/description.md
trackler-2.2.1.175 problem-specifications/exercises/series/description.md
trackler-2.2.1.174 problem-specifications/exercises/series/description.md
trackler-2.2.1.173 problem-specifications/exercises/series/description.md
trackler-2.2.1.172 problem-specifications/exercises/series/description.md
trackler-2.2.1.171 problem-specifications/exercises/series/description.md
trackler-2.2.1.170 problem-specifications/exercises/series/description.md
trackler-2.2.1.169 problem-specifications/exercises/series/description.md
trackler-2.2.1.167 problem-specifications/exercises/series/description.md
trackler-2.2.1.166 problem-specifications/exercises/series/description.md
trackler-2.2.1.165 problem-specifications/exercises/series/description.md
trackler-2.2.1.164 problem-specifications/exercises/series/description.md
trackler-2.2.1.163 problem-specifications/exercises/series/description.md
trackler-2.2.1.162 problem-specifications/exercises/series/description.md
trackler-2.2.1.161 problem-specifications/exercises/series/description.md
trackler-2.2.1.160 problem-specifications/exercises/series/description.md