Skip to content

Category Archives: Strings

Given a binary string str of size N, the task is to find the length of the smallest subsequence such that after erasing the subsequence… Read More
Given a string S consisting of lowercase alphabets and an integer K, the task is to print all the words that occur K times in… Read More
Given a string S of length N, the task is to find the lexicographically smallest K-length subsequence from the string S (where K < N). … Read More
Given a string S, the task is to check if the string can be split into two substrings such that the number of vowels in… Read More
Given a string S of lowercase English alphabets, the task is to print the smallest word in the given string. Examples: Input: S = “sky… Read More
Given two strings S1 and S2, the task is to check if S2 contains an anagram of S1 as its substring. Examples:   Input: S1 =… Read More
Given a binary string S of length N, the task is to find the winner of the game if two players A and B plays… Read More
Given a binary string, str of length N, the task is to find the maximum sum of the count of 0s on the left substring… Read More
Given two strings S1 and S2 of size N and M respectively, the task is to rearrange characters in string S1 such that S2 is… Read More
Given a binary string S of size N and three positive integers L, R, and K, the task is to find the minimum number of… Read More
Given a binary string S of length N and an integer K, the task is to check if it is possible to flip K 0s… Read More
https://write.geeksforgeeks.org/internshipGiven three strings S1, S2, and S3 of lengths L, M, and N respectively, the task is to check if it is possible to choose… Read More
Given a string str and an integer K, the task is to find the length of the longest substring S such that every character in… Read More
Given a string S of length N and an integer K, the task is to find the frequency of the lexicographically Kth smallest character present… Read More