6 kyu
Count Repeats
1,269 of 2,669youngfeldt
Description:
Write a function that returns the count of characters that have to be removed in order to get a string with no consecutive repeats.
Note: This includes any characters
Examples
'abbbbc' => 'abc' # answer: 3
'abbcca' => 'abca' # answer: 2
'ab cca' => 'ab ca' # answer: 1
Strings
Fundamentals
Similar Kata:
Stats:
Created | Aug 12, 2017 |
Published | Aug 14, 2017 |
Warriors Trained | 3769 |
Total Skips | 49 |
Total Code Submissions | 7095 |
Total Times Completed | 2669 |
Python Completions | 1269 |
JavaScript Completions | 1360 |
Ruby Completions | 105 |
Crystal Completions | 12 |
BF Completions | 10 |
Haskell Completions | 18 |
Total Stars | 50 |
% of votes with a positive feedback rating | 90% of 401 |
Total "Very Satisfied" Votes | 333 |
Total "Somewhat Satisfied" Votes | 56 |
Total "Not Satisfied" Votes | 12 |
Total Rank Assessments | 60 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |