## Maximum number of line intersections formed through intersection of N planes

Given N planes. The task is to find the maximum number of line intersections that can be formed through the intersections of N planes. Examples:… 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

Given N planes. The task is to find the maximum number of line intersections that can be formed through the intersections of N planes. Examples:… Read More »

Given a string str consisting of lowercase English alphabets. The task is to add all the character values i.e. ‘a’ = 1, ‘b’ = 2,… Read More »

Given an array of integers arr[] of N elements, the task is to generate another array having (Bitwise) AND of previous and next elements with… Read More »

Given an integer N, the task is to print first N integers whose sum of digits is 10. Examples: Input: N = 4 Output: 19… Read More »

Given a number N, find the remainder when the first digit of N is divided by its last digit. Examples: Input: N = 1234 Output:… Read More »

Given the initial balance as bal and the amount X to be debited, where X must be a multiple of 10 and rupees 1.50 is… Read More »

Given a number N and a digit D, the task is to count the occurrences of D in N. Examples: Input: N = 25, D… Read More »

Given an integer N. The task is to find the Nth prime number. Examples: Input : 5 Output : 11 Input : 16 Output :… Read More »

Given two integers r and d where r is the radius of the smaller circle and d is the difference of the area of this… Read More »

Given four integers A, B, C and D which represents the four angles of a Quadrilateral in degrees. The task is to check whether the… Read More »

Given an array arr of size N. The task is to find the sum of the first half (N/2) elements and second half elements (N… Read More »

A car travels with an average speed of S km/h without any stoppage and with stoppage the speed of car reduces to an average of… Read More »

Given three integers A, B and C which are the three angles of a possible triangle in degrees, the task is to check whether the… Read More »

Given a number N. The task is to find the largest and the smallest digit of the number. Examples : Input : N = 2346… Read More »

Given that the area of a right-angled triangle is X times its base b. The task is to find the height of the given triangle.… Read More »