## Predict the winner in Coin Game

There are two players P1 and P2 and two piles of coins consisting of M and N coins respectively. At each turn, a player can… Read More »

- Program to print window pattern
- Count of integral coordinates that lies inside a Square
- Identical Splitting in a rectangular grid
- Difference between Keyword and Identifier
- Angle between a Pair of Lines in 3D
- Count of all pairs in an Array with minimum absolute difference
- Find indices of all local maxima and local minima in an Array
- Min operations to reduce N by multiplying by any number or taking square root
- Create matrix whose sum of diagonals in each sub matrix is even
- Smallest number greater than Y with sum of digits equal to X
- Minimum cost to convert given string to consist of only vowels

There are two players P1 and P2 and two piles of coins consisting of M and N coins respectively. At each turn, a player can… Read More »

Given four arrays containing integer elements and an integer sum, the task is to count the quadruplets such that each element is chosen from a… Read More »

Given two straight lines with co-efficients of there equations a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0 respectively,… Read More »

Given a straight line with equation coefficients as a, b & c(ax + by + c = 0), the task is to find the area… Read More »

Given are two parallel straight lines with slope m, and different y-intercepts b1 & b2.The task is to find the distance between these two parallel… Read More »

Given a string str, the task is to check if the string is a valid identifier or not. In order to qualify as a valid… Read More »

Given an array arr[] of N integers, the task is to find the maximum difference between any two elements of the array. Examples: Input: arr[]… Read More »

Given an integer m which is the slope of a line, the task is to find the slope of the line which is parallel to… Read More »

Given an array arr[] of N integers and an integer K, the task is to find the number of anomalies in the array. An anomaly is a number for… Read More »

Given three integers A, B, C, the task is to find ΣAi=1 ΣBj=1ΣCk=1 d(i.j.k), where d(x) is the number of divisors of x. Answer can… Read More »

Given an integer N, the task is to find the number of odd days in the years from 1 to N. Odd Days: Number of… Read More »

Given here is a semicircle of radius r, which inscribes a rectangle which in turn inscribes an ellipse. The task is to find the area… Read More »

Given the string the task is to remove the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given the string, the task is to capitalise the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »

Given an array of N integers. The task is to print the elements from the array which are greater than their immediate previous and next… Read More »