You are given a string containing characters A and B only. Your task is to change it into a string such that there are no matching adjacent characters. To do this, you are allowed to delete zero or more characters in the string.
Your task is to find the minimum number of required deletions.
https://www.hackerrank.com/challenges...
Watch video HackerRank: Alternating Characters (JavaScript) online without registration, duration hours minute second in high quality. This video was added by user Glitched Failure 14 October 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 660 once and liked it 13 people.