Alternating Characters – HackerRank Problem Solution

Question: You are given a string containing characters and only. Your task is to change it into a string such that there are no matching adjacent characters. To do this, you can delete zero or more characters in the string. Your task is to find the minimum number of required deletions. For example, given the string s=AABAAB, remove an A at positions 0 and 3  … Continue reading Alternating Characters – HackerRank Problem Solution