Du must remove characters until the string is made up of any two alternating characters. When you choose a character
stes of that character must be removed. Write a function to output the longest string possible that contains just two
was auro, consider the string 'obaocdabd" tf you delete the character'a', you will be left with the string bcdbd. Now, removing the character
sweeth valid string "dod' having a length of 4. Removing either 'b' or 'd' at any point would not result in a valid string. Return 0 if no
ests
L. Code
Aeratingstringint length, strings) {
Answers
Answered by
0
Answer:
- nooooooo9oooooooooooooooooooookooo9okkkkkkkkkkkkkkk
- ooooooooo
Answered by
0
Explanation:
But what is the question
Similar questions