exercism-perl5

Repository for my Perl 5 Exercism exercises
git clone git://git.samirparikh.com/exercism-perl5
Log | Files | Refs | README

README.md (840B) - raw


      1 # Series
      2 
      3 Welcome to Series on Exercism's Perl 5 Track.
      4 If you need help running the tests or submitting your code, check out `HELP.md`.
      5 
      6 ## Instructions
      7 
      8 Given a string of digits, output all the contiguous substrings of length `n` in
      9 that string in the order that they appear.
     10 
     11 For example, the string "49142" has the following 3-digit series:
     12 
     13 - "491"
     14 - "914"
     15 - "142"
     16 
     17 And the following 4-digit series:
     18 
     19 - "4914"
     20 - "9142"
     21 
     22 And if you ask for a 6-digit series from a 5-digit string, you deserve
     23 whatever you get.
     24 
     25 Note that these series are only required to occupy *adjacent positions*
     26 in the input; the digits need not be *numerically consecutive*.
     27 
     28 ## Source
     29 
     30 ### Created by
     31 
     32 - @autark
     33 
     34 ### Contributed to by
     35 
     36 - @kytrinyx
     37 - @m-dango
     38 - @rfilipo
     39 
     40 ### Based on
     41 
     42 A subset of the Problem 8 at Project Euler - http://projecteuler.net/problem=8