## Find the minimum number of elements that should be removed to make an array good

Given an array of size N and an integer K. The array consists of only digits {0, 1, 2, 3, …k-1}. The task is to… Read More »

- Make all numbers of an array equal
- Some useful C++ tricks for beginners in Competitive Programming
- Reach the numbers by making jumps of two given lengths
- Sum of XOR of all subarrays
- Check if a number is perfect square without finding square root
- Nth number whose sum of digit is multiple of 10
- Make Binary Search Tree
- Maximum of all Subarrays of size k using set in C++ STL
- Check if it is possible to reach a number by making jumps of two given length
- Count common characters in two strings
- Find the number in a range having maximum product of the digits
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Given two arrays count all pairs whose sum is an odd number
- Operations required to make the string empty
- Count distinct substrings that contain some characters at most k times
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Program to find the kth character after decrypting a string
- Java ArrayList to print all possible words from phone digits
- Number of array elements derivable from D after performing certain operations
- Check whether two strings contain same characters in same order
- Find two numbers whose divisors are given in a random order
- Minimum number of sets with numbers less than Y
- Number of subarrays have bitwise OR >= K
- Interactive Problems in Competitive Programming
- Sum of bitwise AND of all subarrays
- Shortest Path using Meet In The Middle
- Print all subsequences of a string using ArrayList
- Remove characters from a numeric string such that string becomes divisible by 8
- Represent n as the sum of exactly k powers of two | Set 2
- Count of all possible values of X such that A % X = B

Given an array of size N and an integer K. The array consists of only digits {0, 1, 2, 3, …k-1}. The task is to… Read More »

Given an integer N, the task is to find the Nth Mosaic number. A Mosaic number can be expressed as follows: If N = Aa… Read More »

Given an integer N, the task is to print the first N terms of the Lower Wythoff sequence. Examples: Input: N = 5 Output: 1,… Read More »

Given an integer N, the task is to count the number of possible Binary Search Trees with N keys. Examples: Input: N = 2 Output:… Read More »

Given an unsorted array arr[] of size n, the task is to find the minimum difference between any pair in the given array. Input: arr[]… Read More »

Given two arrays such that the first array contains multiples of an integer n which are less than or equal to k and similarly, the… Read More »

Content Removed My Personal Notes arrow_drop_up Save

Given an integer N, for every integer i in the range 2 to N, assign a positive integer such that the following conditions hold :… Read More »

Given a sorted array of positive integers where arr[i] > 2*arr[i-1], check whether a sub sequence exists whose sum is equal to k. Examples: Input… Read More »

A trip to mystical land is going to be organized in ByteLand, the city of Bytes. Unfortunately, there are limited seats say A and there… Read More »

Given two strings s1 and s2, the task is to find whether the two string contain the same characters that occur in the same order.… Read More »

Given an array of strings arr[] and Q queries where each each query consists of a string str, the task is to find the longest… Read More »

Given an N * M matrix mat[][] which consists of two types of characters ‘.’ and ‘_’. The task is to fill the matrix in… Read More »

Given a string str of size N, the task is to find the sum of all ASCII values of the characters which are present at… Read More »

Given two integers A and B. The task is to find the count of all possible values X such that A % X = B.… Read More »