Skip to content

Write a function that returns the count of characters that have to be removed in order to get a string with no consecutive repeats. #554

Open
@abhijit9040

Description

@abhijit9040

Examples
'abbbbc' => 'abc' # answer: 3
'abbcca' => 'abca' # answer: 2
'ab cca' => 'ab ca' # answer: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions