## Number of ways to get a given sum with n number of m-faced dices

Given n dices each with m faces, numbered from 1 to m, find the number of ways to get a given sum X. X is… Read More »

- Make all numbers of an array equal
- 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
- Minimum operations required to make all the array elements equal
- Count pairs in array whose sum is divisible by K
- Puzzle | Neighbors in a round table
- Generate all rotations of a number
- A Sum Array Puzzle
- Check if it is possible to reach a number by making jumps of two given length
- Count of pairs (x, y) in an array such that x < y
- Find K Closest Points to the Origin
- Find the number in a range having maximum product of the digits
- Count rotations of N which are Odd and Even
- Given two arrays count all pairs whose sum is an odd number
- Distribute N candies among K people
- Sum of all Submatrices of a Given Matrix
- New Algorithm to Generate Prime Numbers from 1 to Nth Number
- Number of array elements derivable from D after performing certain operations
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Midpoint ellipse drawing algorithm
- Minimum number of sets with numbers less than Y
- Sum of bitwise AND of all subarrays
- Find elements of array using XOR of consecutive elements
- Sum of the series 1^1 + 2^2 + 3^3 + ..... + n^n using recursion
- Closest perfect square and its distance
- 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
- Find the value of ln(N!) using Recursion

Given n dices each with m faces, numbered from 1 to m, find the number of ways to get a given sum X. X is… Read More »

Given a positive integer N, the task is to print the Lower Hessenberg matrix of order N which includes any one-digit random positive integer as… Read More »

Given a positive integer N, the task is to print the Upper Hessenberg matrix of order N which includes any one-digit random positive integer as… 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 »

Given a Pentagram and it’s inner side length(d). The task is find out area of Pentagram. The Pentagram is a five-pointed star that is formed… Read More »

Given an integer N, the task is to find the MDAS factorial. The general factorial of a no. N is given by : Factorial(N) =… Read More »

Given an integer N, the task is to find the total number of composite factors of N. Composite factors of a number are the factors… Read More »

Given a N x N Chessboard. The task is to count distinct rectangles from the chessboard. For example, if the input is 8 then the… Read More »

In Probability, Discrete Uniform Distribution Function refers to the distribution with constant probability for discrete values over a range and zero probability outside the range.… Read More »

Content Removed My Personal Notes arrow_drop_up Save

Given a string str consisting of digits, the task is to find the number of possible 4 digit sub-sequences which are of the form (x,… Read More »

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 some rules to generate an N * N matrix mat[][] and two integers R and C, the task is to find the element at… Read More »

Given an array of integers arr[], the task is to find the sum of all the Mersenne numbers from the array. A number is a… Read More »

Given an array of n-elements find the longest sub-array with the greatest arithmetic mean. The length of the sub-array must be greater than 1 and… Read More »