Skip to content

Tag Archives: substring

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 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 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
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 consisting of lowercase English alphabets, the task is to find the longest substring from the given string such that no two… Read More
Given a string S which is an infinite wraparound string of the string “abcdefghijklmnopqrstuvwxyz”, the task is to count the number of unique non-empty substrings… Read More
Given two strings str1 and str2 of the lengths of N and M respectively, the task is to find the length of the longest anagram… Read More
Given string str, the task is to split the string into the maximum number of unique substrings possible and print their count. Examples:  Input: str… Read More
Given string S representing an email address of length N, the task is to find the minimum possible length of the string by replacing “dot”… Read More
Given a binary string S, the task is to determine the winner of the game when two players play a game optimally in alternate turns… Read More
Given a string str consisting of lowercase characters, the task is to modify the string such that it does not contain any palindromic substring of… Read More