## 10’s Complement of a decimal number

Given a decimal number N. The task is to find 10’s complement of the number N. Example: Input : 25 Output : 10’s complement is… Read More »

- Maximize the value of A by replacing some of its digits with digits of B
- Check if array can be divided into two sub-arrays such that their absolute difference is K
- Minimum spanning tree cost of given Graphs
- Make all elements of an array equal with the given operation
- Find the repeating and the missing number using two equations
- Find the values of X and Y in the Given Equations
- Count pieces of circle after N cuts
- Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
- Reconstruct the array by replacing arr[i] with (arr[i-1]+1) % M
- Number of pairs with Bitwise OR as Odd number
- Count pairs with Bitwise-AND as even number
- Maximize the value of x + y + z such that ax + by + cz = n
- Check if N can be represented as sum of integers chosen from set {A, B}
- Check if an array of 1s and 2s can be divided into 2 parts with equal sum
- Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1
- Divide an isosceles triangle in two parts with ratio of areas as n:m
- Number of solutions for x < y, where a <= x <= b and c <= y <= d and x, y are integers
- Split N^2 numbers into N groups of equal sum
- Sum of all even numbers in range L and R
- Number of words in a camelcase sequence
- Represent a number as a sum of maximum possible number of Prime Numbers
- Maximize number of nodes which are not part of any edge in a Graph
- Count the number of common divisors of the given strings
- Absolute difference between the first X and last X Digits of N
- Check if a number can be represented as a sum of 2 triangular numbers
- Maximum sum after repeatedly dividing N by a divisor
- Partiton N into M parts such that difference between Max and Min part is smallest
- Count subarrays consisting of only 0's and only 1's in a binary array

Given a decimal number N. The task is to find 10’s complement of the number N. Example: Input : 25 Output : 10’s complement is… Read More »

Given N, the number of digits of an integer which is greater than or equal to 2 and a weight W. The task is to… Read More »

Given a, b and c which are part of the equation x = b * ( sumdigits(x) ^ a ) + c. Where sumdigits(x) determines… Read More »

Given an array of positive integers. The task is to choose a pair of elements from the given array such that they represent the length… Read More »

Given a perimeter P, the task is to find the number of right triangles possible with perimeter equal to p. Examples: Input: P = 12… Read More »

Given a number N, you need to find a divisor of N such that the Digital Root of that divisor is the greatest among all… Read More »

Given a number n, we need to find the last two digits of 2n. Examples: Input : n = 7 Output : 28 Input :… Read More »

Given two numbers N and D. The task is to find out the largest number smaller than or equal to N which contains the maximum… Read More »

You are given two planes P1: a1 * x + b1 * y + c1 * z + d1 = 0 and P2: a2 *… Read More »

We have a stick of length L. The stick got broken at (n-1) randomly chosen points (lengths of parts can be non-integer or floating point… Read More »

Given value of N and K. The task is to find the sum of series till N-th term whose i-th term is given by Ti… Read More »

The Haversine formula calculates the shortest distance between two points on a sphere using their latitudes and longitudes measured along the surface. It is important… Read More »

Given three points (x1, y1, z1), (x2, y2, z2), (x3, y3, z3). The task is to find the equation of the plane passing through these… Read More »

Given a point (x1, y1) and a line (ax + by + c = 0). The task is to find the perpendicular distance between the… Read More »

Given the number of sides n of a regular polygon. The task is to find out the Interior angle and Exterior angle of the polygon.… Read More »