## Count numbers formed by given two digit with sum having given digits

Given a, b and N(1 to 106). Task is to count the numbers formed by digits a and b exactly of a length N such… Read More »

Given a, b and N(1 to 106). Task is to count the numbers formed by digits a and b exactly of a length N such… Read More »

An ordered tree is an oriented tree in which the children of a node are somehow ordered. It is a rooted tree in which an… Read More »

Given a number N, task is to Check whether it is a permutable prime number or not. A Permutable prime number is that number which… Read More »

Given an integer N, task is to find the numbers which when raised to the power of 2 and added finally, gives the integer N.… Read More »

The sequence first consists of all the odd numbers starting from 1 to n and then remaining even numbers starting 2 up to n. Let’s… Read More »

Dragon Curve Sequence is an infinite binary sequence of 0s and 1s. The first term of the sequence is 1. From the next term, we… Read More »

Given a number n, find the n-th term in the series 3, 13, 42, 108, 235… Examples: Input : 3 Output : 42 Input :… Read More »

A number which consists entirely repeated number of times one is said to be Repeated Unit. We shall define R(k) of length k repeated unit… Read More »

Here is a cipher algorithm, based on hexadecimal strings that is implemented by XORing the given plaintext, N number of times where N is its… Read More »

Given N and M, task is to find whether numbers 1 to N can be divided into two sets such that the absolute difference between… Read More »

Given a number n, find the number of ways to represent this number as a sum of 2 or more consecutive natural numbers. Examples: Input… Read More »

Given a sequence of non-negative integers, say a1, a2, …, an. Only following actions can be performed on the given sequence: Subtract 1 from a[i]… Read More »

Given n and b, where n is the number of terms in the series and b is the value of the angle in degree. Program… Read More »

Blum Integer is the number which only haves 2 factors suppose p and q (i.e. n = p * q), both are Semi-prime and also… Read More »

Given a number n, the task is to find the largest perfect cube that can be formed by deleting minimum digits(possibly 0) from the number.… Read More »