6 kyu
Count Repeats
1,247 of 2,642youngfeldt
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 | 3731 |
Total Skips | 49 |
Total Code Submissions | 7009 |
Total Times Completed | 2642 |
Python Completions | 1247 |
JavaScript Completions | 1355 |
Ruby Completions | 104 |
Crystal Completions | 12 |
BF Completions | 9 |
Haskell Completions | 18 |
Total Stars | 51 |
% of votes with a positive feedback rating | 90% of 400 |
Total "Very Satisfied" Votes | 332 |
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 |