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

Stats:

CreatedAug 12, 2017
PublishedAug 14, 2017
Warriors Trained3731
Total Skips49
Total Code Submissions7009
Total Times Completed2642
Python Completions1247
JavaScript Completions1355
Ruby Completions104
Crystal Completions12
BF Completions9
Haskell Completions18
Total Stars51
% of votes with a positive feedback rating90% of 400
Total "Very Satisfied" Votes332
Total "Somewhat Satisfied" Votes56
Total "Not Satisfied" Votes12
Total Rank Assessments60
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • youngfeldt Avatar
  • g964 Avatar
  • GiacomoSorbi Avatar
  • anter69 Avatar
  • kazk Avatar
  • Blind4Basics Avatar
  • tobeannouncd Avatar
  • Just4FunCoder Avatar
  • saudiGuy Avatar
Ad