## Minimum number of operations on a binary string such that it gives 10^A as remainder when divided by 10^B

Given a binary string str of length N and two integers A and B such that 0 ≤ A < B < n. The task… 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
- Sort the array of strings according to alphabetical order defined by another string
- Make Binary Search Tree
- Check if it is possible to reach a number by making jumps of two given length
- Maximum of all Subarrays of size k using set in C++ STL
- Count common characters in two strings
- Find the number in a range having maximum product of the digits
- Given two arrays count all pairs whose sum is an odd number
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- 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
- Number of array elements derivable from D after performing certain operations
- Program to find the kth character after decrypting a string
- Find two numbers whose divisors are given in a random order
- Java ArrayList to print all possible words from phone digits
- Number of subarrays have bitwise OR >= K
- Minimum number of sets with numbers less than Y
- Check whether two strings contain same characters in same order
- 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

Given a binary string str of length N and two integers A and B such that 0 ≤ A < B < n. The task… Read More »

Given two integers N and K, the task is to check whether N can be represented as sum of K distinct positive integers. Examples: Input:… Read More »

Given two integers a and b, the task is to check whether the product of integers from the rage v[a, b] i.e. a * (a… Read More »

Given an integer K and a range [L, R], the task is to count the quadruplet pairs from the given range having gcd equal to… Read More »

Given a N * N chessboard, the task is to count the number of squares having the odd side length. Example: Input: N = 3… Read More »

Given a range [L, R] where 0 ≤ L ≤ R ≤ 108. The task is to find the count of integers from the given… Read More »

Given two arrays A[] and B[] of equal sizes i.e. N containing integers from 1 to N. The task is to find sub-arrays from the… Read More »

Given two integer N and K, the task is to find the permutation P of first N natural numbers such that there are exactly K… Read More »

Given an array of size N in which initially all the elements are 0(zero). The task is to count the number of 1’s in the… Read More »

Given two arrays of N and M integers. The task is to find the number of unordered pairs formed of elements from both arrays in… Read More »

Given a number N, there are two steps to be performed. At odd step, XOR the number with any 2^M-1, where M is chosen by… Read More »

Given an array of strings arr[] and given some queries where each query consists of a string str and an integer k. The task is… 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 »

Just like base 2 Binary numeral system having 0s and 1s as digits, Ternary(Trinary) Numeral System is a base 3 number system having 0s, 1s… Read More »

Given a binary string str, the task is to find the largest power of 2 that divides the decimal equivalent of the given binary number.… Read More »