## Construct a string that has exactly K subsequences from given string

Given a string str and an integer K, the task is to find a string S such that it has exactly K subsequences of given… Read More »

- What is a Webcrawler and where is it used?
- Sort the strings based on the numbers of matchsticks required to represent them
- Check if the given string is shuffled substring of another string
- Longest Palindrome in a String formed by concatenating its prefix and suffix
- Last digit of sum of numbers in the given range in the Fibonacci series
- Construct an Array of size N in which sum of odd elements is equal to sum of even elements
- Find the Nth Pure number
- Number of ways to place two queens on a N*N chess-board
- Print Triangle separated pattern
- Minimum and Maximum of all subarrays of size K using Map
- Count of total Heads and Tails after N flips in a coin
- Real time optimized KMP Algorithm for Pattern Searching
- Removing string that is an anagram of an earlier string
- Longest palindromic string possible after removal of a substring
- Count all sub-strings with weight of characters atmost K
- Program to print a Hollow Triangle inside a Triangle
- Split the given string into Odds: Digit DP
- Check if left and right shift of any string results into given string
- Find strings that end with a given suffix
- Find length of longest substring with at most K normal characters
- Minimize the non-zero elements in the Array by given operation
- How to validate PAN Card number using Regular Expression
- Make sum of all subarrays of length K equal by only inserting elements
- Reverse the substrings of the given String according to the given Array of indices
- Count of K-countdowns in an Array
- Count of all unique substrings with non-repeating characters
- Count the Arithmetic sequences in the Array of size at least 3
- How to validate time in 12-hour format using Regular Expression
- Total length of string from given Array of strings composed using given characters
- Smallest number greater than n that can be represented as a sum of distinct power of k

Given a string str and an integer K, the task is to find a string S such that it has exactly K subsequences of given… Read More »

Given a numeric string str, the task is to remove all the leading zeros from a given string. If the string containing only zeros, then… Read More »

Given a number N, the task is to find the sum of Hamming difference of consecutive numbers from 0 to N. Hamming Distance between two… Read More »

Given two integers N and K, the task is to find the maximum number of inversion in a sequence of first N natural numbers after… Read More »

Given two integers A and B, the task is to print the integer among the two, which will be converted to an odd integer by… Read More »

Given a point (x, y), the task is to check if it is possible to reach from origin to (x, y) in exactly Z steps.… Read More »

Given a number N which denotes the number of sides of the polygon where the centroid of the polygon is connected with all the vertices,… Read More »

Given four integers A, N, L and R, the task is to find the N th number in a sequence of consecutive integers from L… Read More »

Given a matrix mat[][] of size M*N, the task is to sort only the border elements of the matrix in the clockwise direction and print… Read More »

Given three integers R, C, N, and an array arr[] of size N. The task is to color all cells of a grid of R… Read More »

Given a string str, the task is to check if that string is a Reverse Bitonic string or not. If the string str is reverse… Read More »

Given a number N, the task is to check first whether the given number is binary or not and its value should be greater than… Read More »

Given a string str, the task is to write a Java program to check whether a string contains only digits or not. If so, then… Read More »

Given a URL as a character string str of size N.The task is to check if the given URL is valid or not. Examples :… Read More »

Given a string str, the task is to check if it can be split into substrings such that each substring starts with a numeric value… Read More »