# Tag Archives: number-digits (adsbygoogle = window.adsbygoogle || []).push({});

## Check if a number is a Mystery Number

Given a number check whether it is a mystery number or not. A mystery number is that number which can be expressed as sum of… Read More »

## Least Greater number with same digit sum

Given a number represented in the form of an array such that each element of the array stores a single digit of the number. That… Read More »

## Count all palindrome which is square of a palindrome

Given two positive integers L and R (represented as strings) where . The task is to find the total number of super-palindromes in the inclusive… Read More »

## Count Unary Numbers in a Range

Given two numbers A and B, A<=B, the task is to find the number of unary numbers between A and B, both inclusive. Unary Number:… Read More »

## All possible numbers of N digits and base B without leading zeros

Given number of digits ‘N’ and base ‘B’, the task is to count all the ‘N’ digit numbers without leading zeros that are in base… Read More »

## Print a number containing K digits with digital root D

Given a digital root ‘D’ and number of digits ‘K’. The task is to print a number containing K digits that has its digital root… Read More »

## Program to Convert Hexadecimal Number to Binary

Given a Hexadecimal number as an input, the task is to convert that number to Binary number. Examples: Input: Hexadecimal = 1AC5 Output: Binary =… Read More »

## Largest number divisible by 90 that can be made using 0 and 5

Given an array containing N elements. Each element is either 0 or 5. Find the largest number divisible by 90 that can be made using… Read More »

## Find last two digits of sum of N factorials

Given a number N, the task is to find unit and tens places digit of the first N natural numbers factorials, i.e last last two… Read More »

## Generate a number such that the frequency of each digit is digit times the frequency in given number

Given a number N containing digits from 1 to 9 only. The task is to generate a new number using the number N such that… Read More »

## Minimum number of digits to be removed so that no two consecutive digits are same

Given a number N. The task is to count the minimum number of digits to be removed from the number so that no two consecutive… Read More »

## Check if the sum of digits of a number N divides it

Given a number N. The task is to check if the sum of digits of the given number divides the number or not. If it… Read More »

## Find N digits number which is divisible by D

Given and . The task is to find a N digits number which is divisible by D ( 2 <= D <= 10). If it… Read More »

## Find minimum possible digit sum after adding a number d

Given a number n and a number d, we can add d to n as many times ( even 0 is possible ). The task… Read More »

## Print a number strictly less than a given number such that all its digits are distinct.

Given a positive number n, print a number less than n such that all its digits are distinct. Examples: Input : 1134 Output : 1098… Read More »