## Sum of Fibonacci Numbers in a range

Given a range [l, r], the task is to find the sum fib(l) + fib(l + 1) + fib(l + 2) + ….. + fib(r)… 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 range [l, r], the task is to find the sum fib(l) + fib(l + 1) + fib(l + 2) + ….. + fib(r)… Read More »

Given an array of positive and negative elements. The task is to replace every i-th element of the array by the absolute difference of absolute… Read More »

Given three integers R, B and W which denote the number of runs, balls and wickets. One can score 0, 1, 2, 3, 6 or… Read More »

Given an array arr[] of N unique elements and Q queries. Every query consists of two integers L and R. The task is to print… Read More »

Given an integer N. The following tasks are performed: The number is noted. The leading digit from N is subtracted from N and the resulting… Read More »

Given two integers A and B, the task is to calculate 22A % B. Examples: Input: A = 3, B = 5 Output: 1 223… Read More »

Given an array arr[] of size N and an integer K, the task is to find the smallest index in the array such that: floor(arr[i]… Read More »

Given three integers X, N and M. The task is to find XXX…(N times) % M where X can be any digitfrom the range [1,… Read More »

Given an integer Y, find the smallest number X such that X! contains at least Y trailing zeros. Prerequisites – Count trailing zeroes in factorial… Read More »

Given a number N. Find the number of ways to divide a number into four parts(a, b, c, d) such that a = c and… Read More »

Given a range of positive integers from l to r. Find such a pair of integers (x, y) that l <= x, y <= r,… Read More »

Given 2 integers L and R, the task is to find out the number of integers in the range [L, R] such that they are… Read More »

Given an array of size n, the task is to find the minimum number of steps required to make all the elements of the array… Read More »

Given two N X M matrices of integers. In an operation, we can transpose any square sub-matrix in matrix1. The task is to check if… Read More »

Given a generic digital clock, having h number of hours and m number of minutes, the task is to find how many times the clock… Read More »