Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Series

Write a program that will take a string of digits and give you all the possible consecutive number series of length n in that string.

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

  • 012
  • 123
  • 234

And the following 4-digit series:

  • 0123
  • 1234

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

Source

A subset of the Problem 8 at Project Euler view source