## Total number of ways to place X and Y at n places such that no two X are together

Given N positions, the task is to count the total number of ways to place X and Y such that no two X are together.… Read More »

Given N positions, the task is to count the total number of ways to place X and Y such that no two X are together.… Read More »

Given three integers N, M and X, the task is to find the number of ways to form an array, such that all consecutive numbers… Read More »

Given n points in a plane and no more than two points are collinear, the task is to count the number of triangles in a… Read More »

Given Q queries and P where P is a prime number, each query has two numbers N and R and the task is to calculate… Read More »

Given a sequence of N elements, only three operations can be performed on any element at most one time. The operations are: Add one to… Read More »

Given that a coin is tossed N times. The task is to find the total number of the sequence of tosses such that after the… Read More »

Given an array of N elements and an integer K, print all the distinct integers which can be formed by choosing K numbers from the… Read More »

Given N numbers, find the number of permutations in which the sum of elements at odd index and sum of elements at even index are… Read More »

Given N numbers which have a permutation of first N numbers. In a single operation, any prefix can be reversed. The task is to find… Read More »

Given N and K. The task is to find out how many different ways are there to represent N as the sum of K non-zero… Read More »

Given two positive integers N and K. The task is to find the number of arrays of size N that can be formed such that… Read More »

Prerequisite : Permutation and Combination Given a polygon of m sides, count number of triangles that can be formed using vertices of polygon. Answer :… Read More »

Prerequisite : Permutation and Combination n students appear in an examination, find the number of ways the result of examination can be announced. Answer is… Read More »

The value of 75C2 is: (A) 1215 (B) 2315 (C) 2775 (D) 1675 Answer: (C) Explanation: 75C2 = 75! / (73! * 2!) = 75*74/2… Read More »

In how many different ways can the alphabets of the word ‘SCORING’ be arranged so that the vowels always come together? (A) 120 (B) 720… Read More »