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.159 problem-specifications/exercises/series/description.md
trackler-2.2.1.158 problem-specifications/exercises/series/description.md
trackler-2.2.1.157 problem-specifications/exercises/series/description.md
trackler-2.2.1.156 problem-specifications/exercises/series/description.md
trackler-2.2.1.155 problem-specifications/exercises/series/description.md
trackler-2.2.1.154 problem-specifications/exercises/series/description.md
trackler-2.2.1.153 problem-specifications/exercises/series/description.md
trackler-2.2.1.152 problem-specifications/exercises/series/description.md
trackler-2.2.1.151 problem-specifications/exercises/series/description.md
trackler-2.2.1.150 problem-specifications/exercises/series/description.md
trackler-2.2.1.149 problem-specifications/exercises/series/description.md
trackler-2.2.1.148 problem-specifications/exercises/series/description.md
trackler-2.2.1.147 problem-specifications/exercises/series/description.md
trackler-2.2.1.146 problem-specifications/exercises/series/description.md
trackler-2.2.1.145 problem-specifications/exercises/series/description.md
trackler-2.2.1.144 problem-specifications/exercises/series/description.md
trackler-2.2.1.143 problem-specifications/exercises/series/description.md
trackler-2.2.1.142 problem-specifications/exercises/series/description.md
trackler-2.2.1.141 problem-specifications/exercises/series/description.md
trackler-2.2.1.140 problem-specifications/exercises/series/description.md