##
Generate all palindromic numbers less than n
December 22, 2016

Find all numbers less than n, which are palindromic. Numbers can be printed in any order. Examples: Input : n = 12 Output : 1,… Read More »

December 22, 2016

Find all numbers less than n, which are palindromic. Numbers can be printed in any order. Examples: Input : n = 12 Output : 1,… Read More »

December 19, 2016

Given an array of digits (values are from 0 to 9), find the minimum possible sum of two numbers formed from digits of the array.… Read More »

December 6, 2016

Given a number N which may be 10^5 digits long, the task is to count all the digits in N which divide N. Divisibility by… Read More »

November 19, 2016

An integer number in base 10 which is divisible by sum of it digits is said to be a Harshad Number. An n-harshad number is… Read More »

November 17, 2016

A n digit number x is called Keith number if it appears in a special sequence (defined below) generated using its digits. The special sequence… Read More »

November 16, 2016

Find the Smallest number (Not leading Zeros) which can be obtained by rearranging the digits of given number. Examples: Input: n = 846903 Output: 304689… Read More »

October 26, 2016

Given n distinct digits (from 0 to 9), find sum of all n digit numbers that can be formed using these digits. It is assumed… Read More »

October 21, 2016

Given a string that contains digits of a number. The number may contain many same continuous digits in it. The task is to count number… Read More »

October 8, 2016

Given a number n, we need to find the sum of its digits such that: If n < 10 digSum(n) = n Else digSum(n) =… Read More »

September 28, 2016

Given a number n, find number of digits in n’th Fibonacci Numbers. First few Fibinacci numbers are 0, 1, 1, 2, 3, 5, 8, 13,… Read More »

September 8, 2016

We are given a string consisting of digits, we may group these digits into sub-groups (but maintaining their original order). The task is to count… Read More »

August 18, 2016

Boom numbers are numbers consisting only of digits 2 and 3. Given an integer k (0<k<=10^7) , display the k-th Boom number. Examples: Input :… Read More »

July 31, 2016

Given number of digits n, print all n-digit numbers whose absolute difference between sum of digits at even and odd positions is 1. Solution should… Read More »

Given number of digits n, print all n-digit numbers whose sum of digits adds upto given sum. Solution should not consider leading 0’s as digits.… Read More »

July 12, 2016

Given an integer n (can be very large), find the number of digits that appear in its factorial, where factorial is defined as, factorial(n) =… Read More »