5 kyu
Largest product in a series
1,346 of 3,660JaniL
Description:
Complete the greatestProduct
method so that it'll find the greatest product of five consecutive digits in the given string of digits.
For example: the greatest product of five consecutive digits in the string "123834539327238239583"
is 3240.
The input string always has more than five digits.
Adapted from Project Euler.
Mathematics
Algorithms
Similar Kata:
Stats:
Created | Nov 29, 2013 |
Published | Nov 29, 2013 |
Warriors Trained | 5015 |
Total Skips | 185 |
Total Code Submissions | 10736 |
Total Times Completed | 3660 |
JavaScript Completions | 1346 |
Haskell Completions | 306 |
Ruby Completions | 438 |
Python Completions | 1641 |
Julia Completions | 14 |
Total Stars | 61 |
% of votes with a positive feedback rating | 91% of 461 |
Total "Very Satisfied" Votes | 384 |
Total "Somewhat Satisfied" Votes | 67 |
Total "Not Satisfied" Votes | 10 |
Total Rank Assessments | 6 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 6 kyu |