7 kyu
Counter of neighbor ones
873 of 1,559mlyundin
Description:
Task
Tranform of input array of zeros and ones to array in which counts number of continuous ones. If there is none, return an empty array
Example
[1, 1, 1, 0, 1] -> [3,1]
[1, 1, 1, 1, 1] -> [5]
[0, 0, 0, 0, 0] -> []
Algorithms
Fundamentals
Similar Kata:
Stats:
Created | Mar 18, 2016 |
Published | Mar 18, 2016 |
Warriors Trained | 2510 |
Total Skips | 29 |
Total Code Submissions | 4465 |
Total Times Completed | 1559 |
Python Completions | 873 |
Ruby Completions | 65 |
JavaScript Completions | 622 |
C Completions | 35 |
COBOL Completions | 4 |
Haskell Completions | 30 |
Total Stars | 27 |
% of votes with a positive feedback rating | 92% of 321 |
Total "Very Satisfied" Votes | 274 |
Total "Somewhat Satisfied" Votes | 43 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 9 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |