## Generate number with given operation and check if it is palindrome

Given an integer N the task is to create a string out of it by repeating the number such that the length of the resultant… Read More »

- Methods to concatenate string in C/C++ with Examples
- Find the first maximum length even word from a string
- Repeated Character Whose First Appearance is Leftmost
- Count common characters in two strings
- Find the longest string that can be made up of other strings from the array
- Count substrings that contain all vowels | SET 2
- Convert character array to string in C++
- Check whether two strings contain same characters in same order
- Check for balanced parentheses in an expression | O(1) space | O(N^2) time complexity
- Program to find the kth character after decrypting a string
- Count of integers of length N and value less than K such that they contain digits only from the given set
- Minimum length substring with exactly K distinct characters
- Generate all permutations of a string that follow given constraints
- Maximize the happiness of the groups on the Trip
- Minimum number of times A has to be repeated such that B is a substring of it
- Rearrange characters in a string such that no two adjacent are same using hashing
- Check if two strings are same ignoring their cases
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Find the number of binary strings of length N with at least 3 consecutive 1s
- Print the longest prefix of the given string which is also the suffix of the same string
- Count pairs of non-overlapping palindromic sub-strings of the given string
- Minimum rotations required to get the same String | Set-2
- Append a digit in the end to make the number equal to the length of the remaining string
- Minimum steps to delete a string by deleting substring comprising of same characters
- Program to generate all possible valid IP addresses from given string | Set 2
- Find k-th character of decrypted string | Set - 2
- Minimum number of adjacent swaps to convert a string into its given anagram
- Check if a string can be obtained by rotating another string d places
- Optimally accommodate 0s and 1s from a Binary String into K buckets
- Count of substrings which contains a given character K times

Given an integer N the task is to create a string out of it by repeating the number such that the length of the resultant… Read More »

Given a range represented by two positive integers L and R. Find the number lying in the range having the maximum product of the digits.… Read More »

Given a string of length L. The task is to convert the string into a grid. No. of rows >= floor(√L) No. of columns <=… Read More »

Given a string str, the task is to remove consecutive characters from the string that are in same case (Uppercase or Lowercase) and print the… Read More »

Given an array arr[] containing the cost of adding each alphabet from (a – z) and a string str which may or may noyt be… Read More »

Given a string with repeated characters, we have to insert a star i.e.” * “ between pair of adjacent identical characters using recursion. Examples: Input… Read More »

Given a string str, the task is to count the maximum number of possible operations that can be performed on str. An operation consists of… Read More »

Given a string str, the task is to split the string into minimum parts such that each part is of same length and each part… Read More »

Given a string str which contains only the characters x and y, the task is to count all the sub-strings that start and end with… Read More »

Given a string S containing lowercase latin letters. A character c is called K-amazing if every substring of S with length atleast K contains this… Read More »

A string is called a N-copy string when it is formed by N copies of letter ‘G’. ie “GGGG” is a 4-copy string since it… Read More »

Given an array arr[] of strings of same length, the task is to count the number of columns to be deleted so that all the… Read More »

Given a string str, the task is to print the pattern given in the examples below: Examples: Input: str = “geeks” Output: geeks *kee* **e**… Read More »

Given a string str, the task is to check whether the count of vowels in the given string is prime or not. If its prime… Read More »

Given a string str, the task is to count all possible sub-strings of the given string that are prefix of the same string. Examples: Input:… Read More »