Partial Replacement Solution Codeforces Round #710 Div. 3

You are given a number kk and a string ss of length nn, consisting of the characters ‘.’ and ‘*’. You want to replace some of the ‘*’ characters with ‘x’ characters so that the following conditions are met: The first character ‘*’ in the original string should be replaced with ‘x’; The last character ‘*’ in the original string … Read more