Description You are given a string s consisting only of characters 0 and 1. A substring [l, r] of s is a string slsl + 1sl + 2... sr, and its length equals to r - l + 1. A substring is called balanced if the number of zeroes (0) equals to the number…
inputstandard input outputstandard output You are given a string s consisting only of characters 0 and 1. A substring [l, r] of s is a string slsl + 1sl + 2… sr, and its length equals to r - l + 1. A substring is called balanced if the number of zero…
C - Alphabetic Removals ≤k≤n≤4⋅105) - the length of the string and the number of letters Polycarp will remove. The second line contains the string s consisting of n lowercase Latin letters. Output Print the string that will be obtained from s after P…