Given a ternary string S of length N containing only ‘0’, ‘1’ and ‘2’ characters and Q queries containing a range of indices [L, R],… Read More
The post Minimum characters to be replaced in Ternary string to remove all palindromic substrings for Q queries appeared first on GeeksforGeeks.