## Rearrange the given string such that all prime multiple indexes have same character

Given a string str of size N. The task is to find out whether it is possible to rearrange characters in string str so that… Read More »

- Count substrings that contain all vowels | SET 2
- Find the longest string that can be made up of other strings from the array
- Minimum number of times A has to be repeated such that B is a substring of it
- Count of integers of length N and value less than K such that they contain digits only from the given set
- Java program to check whether a string is a Palindrome
- Minimum number of adjacent swaps to convert a string into its given anagram
- Rearrange characters in a string such that no two adjacent are same using hashing
- Program to generate all possible valid IP addresses from given string | Set 2
- Implement a Dictionary using Trie
- Largest substring with same Characters
- InfyTQ 2019 : Find the position from where the parenthesis is not balanced
- Check if a string can be obtained by rotating another string d places
- C++ program to compare two Strings using Operator Overloading
- Append a digit in the end to make the number equal to the length of the remaining string
- Reverse individual words with O(1) extra space
- Optimally accommodate 0s and 1s from a Binary String into K buckets
- Swap characters in a String
- Rearrange the characters of the string such that no two adjacent characters are consecutive English alphabets
- Maximum length palindromic substring such that it starts and ends with given char
- Reverse the Sentence using Stack
- Sort an array of strings according to string lengths using Map
- Find distinct characters in distinct substrings of a string
- Convert an unbalanced bracket sequence to a balanced sequence
- Check whether two strings are anagrams of each other using unordered_map in C++
- Maximum number of given operations to remove the entire string
- Print characters and their frequencies in order of occurrence using a LinkedHashMap in Java
- Case-specific Sorting of Strings
- Convert a String to an Integer using Recursion
- Maximum String Partition
- Number of substrings that start with "geeks" and end with "for"

Given a string str of size N. The task is to find out whether it is possible to rearrange characters in string str so that… Read More »

Given two strings s1 and s2, the task is to find the minimum number of steps required to convert s1 into s2. The only operation… Read More »

Given a string str in camelCase format, the task is to convert the string into a readable form. Examples: Input: str = “ILoveGeeksForGeeks” Output: I… Read More »

Given a string str, the task is to reverse all the individual words. Examples: Input: str = “Hello World” Output: olleH dlroW Input: str =… Read More »

Given two binary strings str1 and str2. The task is to check whether it is possible to convert str1 to str2 by applying the below… Read More »

Given a string str consisting of uppercase and lowercase characters. The task is to sort uppercase and lowercase characters separately such that if the ith… Read More »

Given two numbers N and K . The task is to find N’th smallest number that is divided by 100 exactly K times. Examples: Input… Read More »

Given a string str with repeated characters, the task is to rearrange the characters in a string such that no two adjacent characters are same.… Read More »

Given an array of strings of length N, it is allowed to concatenate them in any order. Find the maximum possible number of occurrences of… Read More »

Given a string str consisting of a sentence, the task is to reverse the entire sentence word by word. Examples: Input: str = “geeks for… Read More »

Given a string str, the task is to find the number of odd length palindromic sub-sequences around of str with str[i] as centre i.e. every… Read More »

Given a string consisting of numerical alphabets, a character C and an integer K, the task is to find the number of possible substrings which… Read More »

Given a string str consisting of digits, the task is to find the number of possible 4 digit sub-sequences which are of the form (x,… Read More »

Given a string str and an integer K, the task is to find the length of the longest sub-string S’ such that every character in… Read More »

Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »