## Number of blocks in a chessboard a knight can move to in exactly k moves

Given integers i, j, k and n where (i, j) is the initial position of the Knight on a n * n chessboard, the task… 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
- Sum of similarities of string with all of its suffixes
- Check if it is possible to reach a number by making jumps of two given length
- 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
- 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
- Count common characters in two strings
- Sum of the multiples of two numbers below N
- Number of subarrays have bitwise OR >= K
- Given two arrays count all pairs whose sum is an odd number
- Sum of bitwise AND of all subarrays
- Use of FLAG in programming
- Maximum length substring with highest frequency in a string
- Interactive Problems in Competitive Programming
- Shortest Path using Meet In The Middle

Given integers i, j, k and n where (i, j) is the initial position of the Knight on a n * n chessboard, the task… Read More »

Given two binary numbers strings and of length . Find the number of ways of swapping two bits in s1(only s1 not s2) so that… Read More »

Given that the three players playing a game of rolling a dice. Player1 rolled a dice got A and player2 rolled a dice got B.… Read More »

Given a very large number in the form of a string, the task is to check if the number is divisible by 75 or not.… Read More »

Given an array of N numbers, the task is to print all the numbers greater than 1 which divide the maximum of array elements. Examples:… Read More »

Given two number A and B, the task is to find the sum of common factors of two numbers A and B. The numbers A… Read More »

Given an integer N, the task is to find N elements which fail the below-sorting algorithm. If none of the N elements fail, then print… Read More »

Given a number N, the task is to find the sum of all the multiples of A and B below N. Examples: Input:N = 11,… Read More »

Given an integer and ranges (e.g. [a, b]) which are intersecting and overlapping. The task is to find all the number within the range that… Read More »

Given two integers and , the task is to find the sum of all the numbers within the range [1, n] excluding the numbers which… Read More »

Given a number . The task is to check if the number is formed by concatenating the numbers 1, 14 and 144 only any number… Read More »

Given a string , the task is to check if the frequencies of all the characters of the string are prime or not. If all… Read More »

Given an array of size . Move two pointers, one from the left side and one from the right side of the array, a pointer… Read More »

Given two coins which have probability of getting heads p% and q% respectively, the task is to determine the probability of getting two consecutive heads… Read More »

Given a prime . The task is to count all the primitive roots of . A primitive root is an integer x (1 <= x… Read More »