## Construct a sequence from given frequencies of N consecutive integers with unit adjacent difference

Given an array freq[] which stores the frequency of N integers from 0 to N – 1. The task is to construct a sequence where… Read More »

- What is a Webcrawler and where is it used?
- Last digit of sum of numbers in the given range in the Fibonacci series
- Check if the given string is shuffled substring of another string
- Sort the strings based on the numbers of matchsticks required to represent them
- Longest Palindrome in a String formed by concatenating its prefix and suffix
- Minimum and Maximum of all subarrays of size K using Map
- Print the first N terms of the series 6, 28, 66, 120, 190, 276, ...
- Program to print the pattern 1020304017018019020 **50607014015016 ****809012013 ******10011...
- Check if left and right shift of any string results into given string
- Real time optimized KMP Algorithm for Pattern Searching
- Find the Nth Pure number
- Number of ways to place two queens on a N*N chess-board
- Removing string that is an anagram of an earlier string
- Print Triangle separated pattern
- Construct an Array of size N in which sum of odd elements is equal to sum of even elements
- Count of total Heads and Tails after N flips in a coin
- Minimize number of cuts required to break N length stick into N unit length sticks
- Program to print a Hollow Triangle inside a Triangle
- Count of all unique substrings with non-repeating characters
- Longest palindromic string possible after removal of a substring
- Count of binary strings of length N having equal count of 0's and 1's and count of 1's ≥ count of 0's in each prefix substring
- Convert camel case string to snake case in Java
- How to check if string contains only digits in Java
- Find strings that end with a given suffix
- Reverse the substrings of the given String according to the given Array of indices
- Longest substring with atmost K characters from the given set of characters
- Find length of longest substring with at most K normal characters
- Count all possible unique sum of series K, K+1, K+2, K+3, K+4, ..., K+N
- Prime Fibonnaci | TCS Mockvita 2020
- Program to build a DFA to accept strings that start and end with same character

Given an array freq[] which stores the frequency of N integers from 0 to N – 1. The task is to construct a sequence where… Read More »

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 »