May 29, 2020 01:49 pm GMT
Original Link: https://dev.to/thepracticaldev/daily-challenge-251-largest-number-in-a-sequence-1pmo
Daily Challenge 251 - Largest Number in a Sequence
In a six digit (or larger) number, locate the greatest sequence of five consecutive digits found within the number given.
Example
In the following 10 digit number:
1234567890
67890 is the greatest sequence of 5 consecutive digits.
Tests
digit5(7316717)
digit5(1234567898765)
This challenge comes from jhoffner on CodeWars. Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!
Want to propose a challenge idea for a future post? Email [email protected] with your suggestions!
Original Link: https://dev.to/thepracticaldev/daily-challenge-251-largest-number-in-a-sequence-1pmo
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To