## Maximize the given number by replacing a segment of digits with the alternate digits given

Given a large number of N digits. We are also given with 10 numbers which represents the alternate number for all the one-digit numbers from… Read More »

- Count common characters in two strings
- Repeated Character Whose First Appearance is Leftmost
- Convert character array to string in C++
- 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
- Check for balanced parentheses in an expression | O(1) space | O(N^2) time complexity
- Check whether two strings contain same characters in same order
- Rearrange characters in a string such that no two adjacent are same using hashing
- Generate all permutations of a string that follow given constraints
- Program to find the kth character after decrypting a string
- Java program to check whether a string is a Palindrome
- Check if two strings are same ignoring their cases
- Minimum number of adjacent swaps to convert a string into its given anagram
- Maximize the happiness of the groups on the Trip
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Program to generate all possible valid IP addresses from given string | Set 2
- Find the number of binary strings of length N with at least 3 consecutive 1s
- InfyTQ 2019 : Find the position from where the parenthesis is not balanced
- Implement a Dictionary using Trie
- Minimum rotations required to get the same String | Set-2
- Check if a string can be obtained by rotating another string d places
- Count pairs of non-overlapping palindromic sub-strings of the given string
- Append a digit in the end to make the number equal to the length of the remaining string
- Count of substrings which contains a given character K times
- C++ program to compare two Strings using Operator Overloading
- Minimum number of sub-strings of a string such that all are power of 5
- Reverse individual words with O(1) extra space
- Persistent Trie | Set 1 (Introduction)

Given a large number of N digits. We are also given with 10 numbers which represents the alternate number for all the one-digit numbers from… Read More »

Given an array arr[] of strings, the task is to reorder the strings lexicographically and print their positions in the original list. Examples: Input: arr[]… Read More »

Given an array of strings and an array of integers where ith integer of the array corresponds to the value of the ith string present… Read More »

Given three strings A, B and C. Each of these is a string of length N consisting of lowercase English letters. The task is to… Read More »

Given a string S, the task is to check if we can make the string lexicographically smaller by reversing any sub-string of the given string.… Read More »

Given a string str, a character c and an integer k > 0. The task is to find the number of sub-strings that contain the… Read More »

Given a string str and Q queries. Each query consists of two numbers L and R. The task is to find the maximum length palindrome… Read More »

Given a string str, the task is to check if the frequency of any character is more than half the length of the given string.… Read More »

Given a string str consisting of lower case alphabets only and an integer K. The task is to find the minimum cost to modify the… Read More »

Given an array of strings arr[] and two integers l and r, the task is to find the number of times the given string str… Read More »

Given a string str and a character X. The task is to find the total number of sub-strings that contain the character X at least… Read More »

Given a string str and an integer k, the task is to reverse alternate k characters of the given string. If characters present are less… Read More »

Given an integer N, the task is to find the length of the longest substring containing only 4’s from the first N characters of the… Read More »

Given a string str of lowercase English alphabets and an integer m. The task is to count how many positions are there in the string… Read More »

Given a string str consisting of lowercase English letters and an integer K. The task is to find the minimum length of the sub-string whose… Read More »