Check if given string contains all the digits
Given a string str consisting of alphanumeric characters, the task is to check whether the string contains all the digits from 1 to 9. Examples:… Read More »
Given a string str consisting of alphanumeric characters, the task is to check whether the string contains all the digits from 1 to 9. Examples:… Read More »
Given a string S of length N and an integer K, the task is to find the length of longest sub-sequence such that the difference… Read More »
Given an integer N, the task is to reduce the number to a smallest positive integer X after removing some of the digits (possibly none)… Read More »
Given a string str, the task is to find whether the given string is a palindrome or not using stack. Examples: Input: str = “geeksforgeeks”… Read More »
The task is to generate a binary string of length N using branch and bound technique Examples: Input: N = 3 Output: 000 001 010… Read More »
Given two strings A and B of length N, the task is to check whether the two strings can be made equal by swapping any… Read More »
Given a string str, the task is to make the string start and end at the same character with the minimum number of given operations.… Read More »
Given a string str, the task is to find the maximum valued alphabet in str. The value of a particular alphabet is defined as the… Read More »
Given eight digits of a phone number as an integer N, the task is to find the missing last two digits and print the complete… Read More »
Given a binary string str of length N, the task is to find the maximum count of substrings str can be divided into such that… Read More »
Given a string str, the task is to check whether all the substrings of length ≥ 2 have the number of vowels at least as… Read More »
Given two same length strings str1 and str2 consisting of lowercase English alphabets, the task is to find the Mid-Alphabet for each index of the… Read More »
Given a string str containing only lowercase characters, the task is to answer Q queries of the following type: 1 C X: Find the largest… Read More »
Given a string str of length N and Q queries where every query consists of two integers L and R. For every query, the task… Read More »
Given a string str consisting of lowercase characters, the task is to check whether the string is divisible by 6 after changing it according to… Read More »