# Category Archives: Strings

Given a string S of size N and a positive integer K, the task is to perform atmost K operations on string S to make… Read More
Given two strings S1 and S2, the task is to check if string S1 can be made equal to string S2 by swapping any pair… Read More
Given a string S, the task is to design a Deterministic Finite Automata (DFA) for accepting the language L = C (A + B)+. If… Read More
Given two strings A and B of length M and N respectively, the task is to find the minimize swapping of two characters required to… Read More
Given a string S of length N which is the English representation of any number of digits in the range [0 – 9] in jumbled… Read More
Given a binary string S of length N, the task is to find the minimum number of 0s required to be removed from the given… Read More
Given a string, S, the task is to find the maximum number of distinct indexed palindromic subsequences of length 3 possible from the given string.… Read More
Given a string S of length N, the task is to find the smallest balanced substring in S. If no such substring is present, print… Read More
Ropes are scalable string implementation. They are designed for efficient operation that involves the string as a whole. Operations such as assignment, concatenation, and sub-string… Read More
Given two binary strings S1 and S2 of length N (1 ≤ N ≤ 105), the task is to check if it is possible to… Read More
In this article, we will discuss how to generate a random password of a given length consists of any characters. Approach: The below-given program involves… Read More
Given an array arr[] consisting of numeric strings, the task is to calculate Greatest Common Divisor of the given array. Considering strings ‘A’ and ‘B’,… Read More
Given a string str consisting of pairs of balanced parentheses, the task is to calculate the score of the given string based on the following… Read More
Given a string S and a string T, the task is to find the minimum possible length to which the string S can be reduced… Read More
Given two strings str1 and str2, the task is to find the minimum number of operations required to map each character of the string str1… Read More