# Tag Archives: Numbers

## Check whether a given number N is a Nude Number or not

Given an integer N, the task is to check whether N is a Nude number or not. A Nude number is a number that is… Read More »

## Count of possible permutations of a number represented as a sum of 2’s, 4’s and 6’s only

Given an integer N, the task is to find out the number of permutations in which N can be represented as a sum of 2s,… Read More »

## Count of numbers in Array ending with digits of number N

Given a number N and an array arr[] consisting of K numbers, the task is to find the count of numbers in the array which… Read More »

## Check if a number ends with another number or not

Given two numbers A and B where (A > B), the task is to check if B is a suffix of A or not. Print… Read More »

## Find N distinct integers with sum N

Given an integer N, the task is to find N distinct integers whose sum is N. If there is more than one combination of the… Read More »

## Program to find absolute value of a given number

Given an integer N, the task is to find the absolute value of the given integer. Examples: Input: N = -6 Output: 6 Input: N… Read More »

## Represent N as sum of K odd numbers with repetitions allowed

Given two integers N and K, the task is to represent N as sum of K odd numbers. If it is not possible to create… Read More »

## Represent N as sum of K even numbers

Given two integers N and K, the task is to represent N as sum of K even number. If it is not possible to represent… Read More »

## Curzon Numbers

Given an integer N, check whether the given number is a Curzon Number or not. A number N is said to be a Curzon Number… Read More »

## Find the Kth number which is not divisible by N

Given two integers N and K, the task is to find the Kth number which is not divisible by N. Note: The value of N… Read More »

## Length of Longest Perfect number Subsequence in an Array

Given an array arr[] containing non-negative integers of length N, the task is to print the length of the longest subsequence of Perfect numbers in… Read More »

## Find N distinct integers with zero sum

Given an integer N, our task is to print N distinct numbers such that their sum is 0. Examples: Input: N = 3 Output: 1,… Read More »

## Find all ranges of consecutive numbers from Array

Given a sorted array arr[] consisting of N integers without any duplicates, the task is to find the ranges of consecutive numbers from that array.… Read More »

## Largest value of x such that axx is N-digit number of base b

Given the integers a, b, N, the task is to find the largest number x such that is an N-digit number of base b. Examples:… Read More »

## Program to balance the given Chemical Equation

Given the values x, y, p, q of a simple chemical equation of the type: The task is to find the values of constants b1,… Read More »