## Count possible moves in the given direction in a grid

Given a grid N x M size and initial position (X, Y) and a series of K moves. Each move contains 2 integers Dx and… 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
- Modulo power for large numbers represented as strings
- Number of integral solutions for equation x = b*(sumofdigits(x)^a)+c
- Count Numbers with N digits which consists of odd number of 0's
- Find the repeating and the missing number using two equations
- Make all elements of an array equal with the given operation
- Count pieces of circle after N cuts
- Find the values of X and Y in the Given Equations
- Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
- Program to find total number of edges in a Complete Graph
- Minimum spanning tree cost of given Graphs
- Number of pairs with Bitwise OR as Odd number
- Find other two sides and angles of a right angle triangle
- Maximum number of pieces in N cuts
- Check if N can be represented as sum of integers chosen from set {A, B}
- Count pairs with Bitwise-AND as even number
- Program to find Length of Bridge using Speed and Length of Train
- Maximum Possible Edge Disjoint Spanning Tree From a Complete Graph
- 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
- 10's Complement of a decimal number
- Number of unique permutations starting with 1 of a Binary String
- Maximize the value of x + y + z such that ax + by + cz = n
- Divide an isosceles triangle in two parts with ratio of areas as n:m
- Reconstruct the array by replacing arr[i] with (arr[i-1]+1) % M
- Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1
- Split N^2 numbers into N groups of equal sum
- Permutations to arrange N persons around a circular table

Given a grid N x M size and initial position (X, Y) and a series of K moves. Each move contains 2 integers Dx and… Read More »

Given three integers X, Y and N, the task is to find the Nth term of the series f[i] = f[i – 1] – f[i… Read More »

Given three integers A, B and C, the task is to find the count of values of X such that the following condition is satisfied,… Read More »

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 »