• + 1 comment

    Must there be at least k characters of higher value between any two equal characters in the string or, it is enough if one such pair satisfies the condition?