Fill a string with character in a way that it doesn't repeat 3 times

前端 未结 0 1053
滥情空心
滥情空心 2020-12-14 03:04

Assuming I have such input: AbvfAAmjhAAAkkk

I need to replace maximum number of chars with the char \'A\' in such a way that we don\'t have a sequence of 3 appearance

相关标签:
回答
  • 消灭零回复
提交回复
热议问题