## Sum of similarities of string with all of its suffixes

Given a string str, the task is to find the sum of the similarities of str with each of its suffixes. The similarity of strings… Read More »

## String matching with * (that matches with any) in any of the two strings

You are given two strings A and B. Strings also contains special character * . you can replace * with any alphabetic character. Finally, you… Read More »

## Number of unique permutations starting with 1 of a Binary String

Given a binary string composed of 0’s and 1’s. The task is to find the number of unique permutation of the string which starts with… Read More »

## C program to find the length of a string

Given a string str. The task is to find the length of the string. Examples: Input: str = “Geeks” Output: Length of Str is :… Read More »

## Generating all possible Subsequences using Recursion

Given an array. The task is to generate and print all of the possible subsequences of the given array using recursion. Examples: Input : [1,… Read More »

## Fascinating Number

Given a number N, the task is to check whether it is fascinating or not. Fascinating Number: When a number( 3 digits or more )… Read More »

## Find the largest number that can be formed with the given digits

Given an array of integers arr[] representing digits of a number. The task is to write a program to generate the largest number possible using… Read More »

## Sorting a dynamic 2-dimensional array of Strings

Prerequisite: How to dynamically allocate a 2D array in C? Double pointer: A pointer pointing to another pointer is known as a Double pointer. To… Read More »

## Check if the characters in a string form a Palindrome in O(1) extra space

Given a string str. The string may contain lower-case letters, special characters, digits or even white-spaces. The task is to check, whether only the letters… Read More »

## Print the given 3 string after modifying and concatenating

Given three strings(without spaces). The task is to print the new string after modifying the three given string as follows: Replace all the vowels present… Read More »

## Maximum length subsequence possible of the form R^N K^N

Given a string containing only two characters i.e. R and K (like RRKRRKKKKK). The task is to find the maximum value of N for a… Read More »

## Python | Check if a given string is binary string or not

Given a string str. The task is to check whether it is a binary string or not. Examples: Input: str = “01010101010” Output: Yes Input:… Read More »

## Longest common anagram subsequence from N strings

Given N strings. Find the longest possible subsequence from each of these N strings such that they are anagram to each other. The task is… Read More »

## Print all the combinations of a string in lexicographical order

Given a string str, print of all the combinations of a string in lexicographical order. Examples: Input: str = “ABC” Output: A AB ABC AC… Read More »

## Replace every character of string by character whose ASCII value is K times more than it

Given a string str consisting of lowercase letters only and an integer k, the task is to replace every character of the given string by… Read More »