## Counting even decimal value substrings in a binary string

Given a binary string of size N. Count all substring that have even decimal value considering binary to decimal conversion from left to right (For… Read More »

Given a binary string of size N. Count all substring that have even decimal value considering binary to decimal conversion from left to right (For… Read More »

Given a string s, create a new string such that it contains the characters of the two halves of the string s combined alternately in… Read More »

Given two strings and . Create two new strings by exchanging the first half and second half of one of the strings with the first… Read More »

Given two strings ‘a’ and ‘b’ and a number k, our aim is to merge the strings into a string s such that it contains… Read More »

Given a string S. Print the lexicographically smallest string possible. You can make minimal changes to the characters in the string and you can permute… Read More »

Given a string calculate length of the string using recursion. Examples: Input : str = “abcd” Output :4 Input : str = “GEEKSFORGEEKS” Output :13… Read More »

Given a positive integer number n generate all the binary number from 0 to n. Examples: Input : 5 Output : 0 1 10 11… Read More »

Given a sequence, find the length of the longest palindromic subsequence in it. More examples Input : abbaab Output : 4 Input : geeksforgeeks Output… Read More »

Given a string, count total number of consonants in it. A consonant is a English alphabet character that is not vowel (a, e, i, o… Read More »

Given a 2-Dimensional character array and a string, we need to find the given string in 2-dimensional character array such that individual characters can be… Read More »

Given two strings contains three characters i.e ‘A’, ‘B ‘and ‘#’ only. Check is it possible to convert first string into another string by performing… Read More »

Given two strings S and T. Find the positions of two letters to be swapped in S so that the hamming distance between strings S… Read More »

Given two strings X and Y, we need to convert string X into an anagram of string Y with minimum replacements. If we have multiple… Read More »

Given a string of length n and a non-negative integer k. Find k distant string of given string. Distance between two letters is difference between… Read More »

Earlier we have discussed on how to check if both halves of the string have same set of characters. Now, we further extend our problem… Read More »