7 kyu
Largest 5 digit number in a series
11,162 of 29,116jhoffner
Description:
In the following 6 digit number:
283910
91
is the greatest sequence of 2 consecutive digits.
In the following 10 digit number:
1234567890
67890
is the greatest sequence of 5 consecutive digits.
Complete the solution so that it returns the greatest sequence of five consecutive digits found within the number given. The number will be passed in as a string of only digits. It should return a five digit integer. The number passed may be as large as 1000 digits.
Adapted from ProjectEuler.net
Algorithms
Similar Kata:
Stats:
Created | Apr 12, 2013 |
Published | Apr 12, 2013 |
Warriors Trained | 58202 |
Total Skips | 8963 |
Total Code Submissions | 128269 |
Total Times Completed | 29116 |
JavaScript Completions | 11162 |
CoffeeScript Completions | 197 |
Ruby Completions | 2629 |
Haskell Completions | 568 |
Python Completions | 9007 |
Dart Completions | 808 |
C# Completions | 1191 |
PHP Completions | 980 |
Elixir Completions | 230 |
Java Completions | 1591 |
C++ Completions | 831 |
C Completions | 385 |
Rust Completions | 395 |
Crystal Completions | 16 |
COBOL Completions | 13 |
Julia Completions | 19 |
Total Stars | 638 |
% of votes with a positive feedback rating | 88% of 3195 |
Total "Very Satisfied" Votes | 2542 |
Total "Somewhat Satisfied" Votes | 550 |
Total "Not Satisfied" Votes | 103 |