## Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1

Given an array A containing N elements (N is divisible by 3), the task is to split the numbers into groups of 3, let the… 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
- Program to find total number of edges in a Complete Graph
- Find the repeating and the missing number using two equations
- Find the values of X and Y in the Given Equations
- Maximum average of a subarray of size of atleast X and atmost Y
- Count Numbers with N digits which consists of odd number of 0's
- Maximum number of pieces in N cuts
- Count pieces of circle after N cuts
- Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
- Number of pairs with Bitwise OR as Odd number
- Given count of digits 1, 2, 3, 4, find the maximum sum possible
- Find other two sides and angles of a right angle triangle
- Maximum Possible Edge Disjoint Spanning Tree From a Complete Graph
- Program to find Length of Bridge using Speed and Length of Train
- Count pairs with Bitwise-AND as even number
- Check if N can be represented as sum of integers chosen from set {A, B}
- Reconstruct the array by replacing arr[i] with (arr[i-1]+1) % M
- Find the number of solutions to the given equation
- Check if an array of 1s and 2s can be divided into 2 parts with equal sum
- Check if it is possible to create a polygon with a given angle
- Minimum length of the shortest path of a triangle
- Count possible moves in the given direction in a grid
- Maximize the value of x + y + z such that ax + by + cz = n
- Number of unique permutations starting with 1 of a Binary String
- Find smallest number K such that K % p = 0 and q % K = 0
- 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

Given an array A containing N elements (N is divisible by 3), the task is to split the numbers into groups of 3, let the… Read More »

Given an array containing N elements, each element is either 1 or 2. The task is to find out whether the array can be divided… Read More »

Given two numbers and . Find the values of X and Y in the equations. A = X + Y B = X xor Y… Read More »

Given N points in 2 dimensional space. The task is to count the number of triplets pairs (A, B, C) such that point B is… Read More »

Given two string A and B which represents two integers, the task is to print the maximized value of A after replacing 0 or more… Read More »

Given two strings a and b, the task is to count the number of common divisors of both the strings. A string s is a… Read More »

Given an integer N. The task is to find the maximum possible sum of intermediate values (Including N and 1) attained after applying the beow… Read More »

Given an array arr[] of n integers and an integer k. The task is to make all the elements of arr[] equal with the given… Read More »

Given an integer N, the task is to find out whether it can be written as a sum of 2 triangular numbers (which may or… Read More »

Given integers n, a, b and c, the task is to find the maximum value of x + y + z such that ax +… Read More »

Given two integers N and X. The task is to print the absolute difference between the first X and last X digits in N. Considering… Read More »

Given an undirected graph of V nodes (V > 2) named V1, V2, V3, …, Vn. Two nodes Vi and Vj are connected to each… Read More »

Given an array arr[] and an integer K, the task is to find whether the array can be divided into two sub-arrays such that the… Read More »

Given an array arr[] of size N, each integer from the range [1, N] appears exactly once except A which appears twice and B which… Read More »

Given two integers L and R, the task is to find the sum of all even numbers in range L and R. Examples: Input: L… Read More »