33-js-concepts icon indicating copy to clipboard operation
33-js-concepts copied to clipboard

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

Open abhijit9040 opened this issue 1 year ago • 6 comments

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

abhijit9040 avatar Oct 19 '24 19:10 abhijit9040

Please assign me this issue

ayush14189 avatar Oct 19 '24 19:10 ayush14189

/assign

rkdabas avatar Oct 20 '24 08:10 rkdabas

/assign

Random-Var avatar Oct 21 '24 14:10 Random-Var

hello sir @leonardomso , please assign me this task.

BaniSinghgithub avatar Oct 22 '24 14:10 BaniSinghgithub

Can you please assign me this issue under haktoberfest.

krrakshit avatar Oct 23 '24 07:10 krrakshit

/assign

Okay

abhijit9040 avatar Nov 01 '24 05:11 abhijit9040

Hi! I noticed this issue has been open a while. I’d like to work on it — unless someone else is already doing so, I’ll go ahead and prepare a PR

aniirathod avatar Oct 01 '25 08:10 aniirathod

Hi , I would like to work on this, there are many ways to solve this problem but the most efficient is Greedy Linear Scan (in O(n) time & constant space). please Assign me if you can.

aakashverse avatar Oct 01 '25 09:10 aakashverse