## Number of odd and even results for every value of x in range [min, max] after performing N steps

Given a number N and the min and max range. Given N values of a and b respectively. The task is to count the number… Read More »

- How can one become good at Data structures and Algorithms easily?
- Make all numbers of an array equal
- Reach the numbers by making jumps of two given lengths
- Some useful C++ tricks for beginners in Competitive Programming
- Check if a number is perfect square without finding square root
- Sum of XOR of all subarrays
- 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
- Sum of similarities of string with all of its suffixes
- Smallest Pair Sum in an array
- Find the number in a range having maximum product of the digits
- Maximum of all Subarrays of size k using set in C++ STL
- Print matrix in snake pattern from the last column
- Count distinct substrings that contain some characters at most k times
- Number of array elements derivable from D after performing certain operations
- Count common characters in two strings
- Operations required to make the string empty
- Program to find the kth character after decrypting a string
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Minimum number of sets with numbers less than Y
- Find two numbers whose divisors are given in a random order
- Given two arrays count all pairs whose sum is an odd number
- Number of subarrays have bitwise OR >= K
- Use of FLAG in programming
- Sum of the multiples of two numbers below N
- Merge K sorted arrays of different sizes | ( Divide and Conquer Approach )
- Sum of bitwise AND of all subarrays
- Interactive Problems in Competitive Programming
- Maximum length substring with highest frequency in a string

Given a number N and the min and max range. Given N values of a and b respectively. The task is to count the number… Read More »

Given a string str, the task is to print the maximum count of characters which are greater than both its left and right character in… Read More »

Given as an input two strings, = , and = , output the alignment of the strings, character by character, so that the net penalty… Read More »

Given an array of n distinct integers and an integer k. Find out the number of sub-sequences of a such that , and . In… Read More »

Given a string, find count of number of larger alphabets for every character of the string. Examples: Input : str = “abcd” Output : 3… Read More »

Given three numbers a, b and m where 1<=a, m<=10^6. Given very large 'b' containing up to 10^6 digits and m is a prime number,… Read More »

Given an array of N integers. If a number occurs more than once, choose any number y from the array and replace the x in… Read More »

Given two numbers M and N, the task is to check if the M-th and N-th Fibonacci numbers perfectly divide each other or not. Examples:… Read More »

Consider a pipe of length L. The pipe has N water droplets at N different positions within it. Each water droplet is moving towards the… Read More »

Given an array of N integers, find the difference between the summation of numbers whose frequency of all digits are same and different. For e.g.… Read More »

Given a rod of length L, the task is to cut the rod in such a way that the total number of segments of length… Read More »

Given start, end and an array of N numbers. At each step, start is multiplied with any number in the array and then mod operation… Read More »

Given K arrays of different size. The task is to check if there exist any two arrays which have the same sum of elements after… Read More »

Given an array of n elements and q range queries (range sum in this article) with no updates, task is to answer these queries with… Read More »

Given an array of N integers, the task is to find the number of operations required to make all elements in the array equal. In… Read More »