## Check whether a given Number is Power-Isolated or not

Given a integer N, with prime factorisation n1p1 * n2p2 …… The task is to check if the integer N is power-isolated or not. An… Read More »

## C program to Check Whether a Number is Positive or Negative or Zero

Given a number A. The task is to check whether A is positive, negative or zero. Examples: Input: A = 2 Output: 2 is positive… Read More »

## Triplet with no element divisible by 3 and sum N

Given an integer N greater than 2, the task is to print any combination of a, b and c such that: a + b +… Read More »

## Fascinating Number

Given a number N, the task is to check whether it is fascinating or not. Fascinating Number: When a number( 3 digits or more )… Read More »

## 10’s Complement of a decimal number

Given a decimal number N. The task is to find 10’s complement of the number N. Example: Input : 25 Output : 10’s complement is… Read More »

## Tetranacci Numbers

The tetranacci numbers are a generalization of the Fibonacci numbers defined by the recurrence relation T(n) = T(n-1) + T(n-2) + T(n-3) + T(n-4) with… Read More »

## Hyperfactorial of a number

Given a number, the task is to find the hyperfactorial of a number. The result of multiplying a given number of consecutive integers from 1… Read More »

## Weird Number

In number theory, a weird number is a natural number that is abundant but not semiperfect. In other words, the sum of the proper divisors… Read More »

## Sum of elements in range L-R where first half and second half is filled with odd and even numbers

Given a number N, create an array such the first half of the array is filled with odd numbers till N and second half of… Read More »

## Element which occurs consecutively in a given subarray more than or equal to K times

Given an array of size N and Q queries, each query consists of L, R, and K(consider 1 based-indexing for L and R). The task… Read More »

## Minimum inverting factor in an array

Given an array of n positive integers, the task is to find the minimum inverting factor in the given array. Inverting factor is defined as… Read More »

## Number of ones in the smallest repunit

Given a positive integer N whose unit’s digit is 3. Find the number of 1s in the smallest repunit which is divisible by the given… Read More »

## Find the Number which contain the digit d

Given two integer number n and d. The task is to find the number between 0 to n which contain the specific digit d. Examples:… Read More »

## Fibbinary Numbers (No consecutive 1s in binary)

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 »

## Sum of square of first n odd numbers

Given a number n, find sum of square of first n odd natural numbers. Examples : Input : 3 Output : 35 12 + 32… Read More »