## 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 »

## Number with even sum of digits

A positive integer is considered a good number if sum of its digits is even. Find n-th smallest good number. Examples : Input : n… Read More »

## Largest even digit number not greater than N

Given a number N, we need to write a program to find the largest number not greater than N which has all digits even. Examples:… Read More »

## Smallest multiple of a given number made of digits 0 and 9 only

We are given an integer N. We need to write a program to find the least positive integer X made up of only digits 9’s… Read More »

## Number of digits in 2 raised to power n

Let n be any power raised to base 2 i.e 2n. We are given the number n and our task is to find out the… Read More »

## Smallest even digits number not less than N

Given a number N, we need to write a program to find the smallest number not less than N, which has all digits even. Examples:… Read More »

## Pandigital Product

A Pandigital Number is number which makes the use of all digits 1 to 9 exactly once. We are given a number, we need to… Read More »

## Undulating numbers

An undulating number is a number that has only two types of digits and alternate digits are same, i.e., it is of the form “ababab….”.… Read More »

## n-th number whose sum of digits is ten

Given an integer value n, find out the n-th positive integer whose sum is 10. Examples: Input : n = 2 Output : 28 The… Read More »

## Recursive sum of digits of a number formed by repeated appends

Given two positive number N and X. The task is to find the sum of digits of a number formed by N repeating X number… Read More »

## Sum of n digit numbers divisible by a given number

Given n and a number, the task is to find the sum of n digit numbers that are divisible by given number. Examples: Input :… Read More »

## Find nth number that contains the digit k or divisible by k.

You have given two number n and k. You need to find the n-th number that contains the digit k or divisible by k (2… Read More »

## Numbers having difference with digit sum more than s

You are given two positive integer value n and s. You have to find the total number of such integer from 1 to n such… Read More »

## Count n digit numbers not having a particular digit

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 »

## Closest Palindrome Number (absolute difference Is min)

Given a number N. our task is to find the closest Palindrome number whose absolute difference with given number is minimum and absolute difference must… Read More »