## Program to print a doormat pattern having a string written in the center in Python

Given the number of rows R and the number of columns C, the task is to print a doormat pattern as shown in the examples… Read More »

- Check duplicates in a stream of strings
- Minimum number of substrings the given string can be splitted into that satisfy the given conditions
- Minimum cost to convert str1 to str2 with the given operations
- Modulo of a large Binary String
- Count number of binary strings such that there is no substring of length greater than or equal to 3 with all 1's
- Print characters in decreasing order of frequency
- Minimum number of additons to make the string balanced
- Minimum characters that are to be inserted such that no three consecutive characters are same
- Minimum length String with Sum of the alphabetical values of the characters equal to N
- Check whether two strings can be made equal by copying their characters with the adjacent ones
- Extract all integers from the given string in Java
- Count of matchsticks required to represent the given number
- C Program to concatenate two strings without using strcat
- Program to implement FLAMES game
- C program to print the length of a String using %n format specifier

Given the number of rows R and the number of columns C, the task is to print a doormat pattern as shown in the examples… Read More »

Given two integers M and N the task is to find the number formed by concatenating the binary equivalents of M and N i.e. M… Read More »

Given a binary string str of length N, the task is to find the count of substrings of str which are divisible by 2. Leading… Read More »

Given a binary string S of length N and an integer K, the task is to find the smallest non-zero sub-string of S that can… Read More »

Given a string str and an integer K, the task is to print the length of the longest possible substring that has exactly K unique… Read More »

Given two binary string of unequal lengths A and B, the task is to print the binary string which is the XOR of A and… Read More »

Given a binary string str of length N, the task is to find the longest sub-string divisible by 2. If no such sub-string exists then… Read More »

Given a binary string str of length N, the task is to find the count of subsequences of str which are divisible by 2. Leading… Read More »

Given two strings X and Y containing lower-case alphabets, the task is to check whether any permutation of string X exists in Y as its… Read More »

Given a string str that consists of lower case English letters and brackets. The task is to reverse the substrings in each pair of matching… Read More »

Given a tree with N nodes and N – 1 edges. Each edge of the tree is labeled by a string of lowercase english alphabets.… Read More »

Given two strings str and patt, the task is to find the count of times patt can be formed using the characters of str. Examples:… Read More »

As string.h header file contains inbuilt functions to handle Strings in C/C++, the ctype.h/<cctype> contains inbuilt functions to handle characters in C/C++ respectively. Characters are… 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 »