## Check whether a given matrix is orthogonal or not

We are given a matrix, we need to check whether it is an orthogonal matrix or not. An orthogonal matrix is a square matrix and… Read More »

We are given a matrix, we need to check whether it is an orthogonal matrix or not. An orthogonal matrix is a square matrix and… Read More »

We are given two integers n and d, we need to count all n digit numbers that do not have digit d. Example : Input… Read More »

In this article we will discuss about Lucas-Lehmer series which is used to check primality of prime numbers of the form 2p – 1 where… Read More »

Given a few terms of a sequence, we are often asked to find the expression for the nth term of this sequence. While there is… Read More »

Given an array of n-positive integers and a positive integer k, find a set of exactly m-elements such that difference of any two element is… Read More »

Given a number, check if it is perfect square or not. Examples: Input : 2500 Output : Yes 2500 is a perfect square. 50 *… Read More »

Given first term (a), common ratio (r) and a integer n of the Geometric Progression series, the task is to print th n terms of… Read More »

Given first term (a), common difference (d) and a integer N of the Arithmetic Progression series, the task is to find Nthterm of the series.… Read More »

Given N, check if the number is Fibbinary Number or not. Fibbinary numbers are integers whose binary representation contains no consecutive ones. Examples: Input :… Read More »

We have given two numbers x and n which are base and exponent respectively. Write a function to compute x^n where 1 <= x, n… Read More »

A P-smooth number or P-friable number is an integer whose largest prime factor is less than or equal to P. Given N and P, we… Read More »

Postfix: An expression is called the postfix expression if the operator appears in the expression after the operands. Simply of the form (operand1 operand2 operator).… Read More »

Infix expression: The expression of the form a op b. When an operator is in-between every pair of operands. Postfix expression: The expression of the… Read More »

Given a range [L, R], and a prime number P. We are required to find the sum of the highest power of P in all… Read More »

Given a square matrix, swap the element of major and minor diagonals. Major Diagonal Elements of a Matrix : The Major Diagonal Elements are the… Read More »