## Smallest number with sum of digits as N and divisible by 10^N

Find the smallest number such that the sum of its digits is N and it is divisible by . Examples : Input : N =… Read More »

- Nth number whose sum of digit is multiple of 10
- Smallest integer with digit sum M and multiple of N
- Program to check if a number is divisible by sum of its digits
- Find the longest subsequence of an array having LCM at most K
- Program to calculate product of digits of a number
- Sort the numbers according to their sum of digits
- Find the sum of digits of a number at even and odd places
- Find the number of solutions to the given equation
- Check if product of digits of a number at even and odd places is equal
- Minimum number of given moves required to make N divisible by 25
- Longest subarray such that adjacent elements have at least one common digit | Set - 2
- Sum of two numbers where one number is represented as array of digits
- Find M-th number whose repeated sum of digits of a number is N
- Append a digit in the end to make the number equal to the length of the remaining string
- Smallest integer greater than n such that it consists of digit m exactly k times
- Find Nth positive number whose digital root is X
- Absolute difference between the first X and last X Digits of N
- Find the count of numbers that can be formed using digits 3, 4 only and having length at max N.
- Check if two numbers have same number of digits
- Numbers in a Range with given Digital Root
- Maximum number formed from array with K number of adjacent swaps allowed
- Count the nodes in the given tree whose sum of digits of weight is odd
- Count the number of digits of palindrome numbers in an array
- Greatest number less than equal to B that can be formed from the digits of A
- Maximum number that can be display on Seven Segment Display using N segments
- Check if a + b = c is valid after removing all zeroes from a, b and c
- Third last digit in 5^N for given N
- Composite numbers with digit sum 1
- Largest and smallest digit of a number

Find the smallest number such that the sum of its digits is N and it is divisible by . Examples : Input : N =… Read More »

Given a number N, output all Munchhausen numbers from 1 to n. Introduction : A Münchhausen number is a number equal to the sum of… Read More »

Given three numbers a, b and k, find k-th digit in ab from right side Examples: Input : a = 3, b = 3, k… Read More »

Given very large numbers n and x, we need to find the sum of digits of n^x such that : If n^x < 10 digSum(n^x)… Read More »

Given a number n, find whether all digits of n divide it or not. Examples: Input : 128 Output : Yes 128 % 1 ==… Read More »

Given a range l – r (inclusive), count the numbers that are divisible by all of its non-zero digits. Examples: Input : 1 9 Output… Read More »

Given a integer number n, find largest sum of digits in all divisors of n. Examples : Input : n = 12 Output : 6… Read More »

Given an array with n numbers. The task is to print number of consecutive zero’s at the end after multiplying all the n number. Examples… Read More »

Given three integers a, b and c, find the first occurrence of c in a/b after the decimal point. If it does not exists, print… Read More »

Given a number, we need to find sum of its digits using recursion. Examples: Input : 12345 Output : 15 Input : 45632 Output :20… Read More »

Given a non-negative palindromic number num containing n number of digits. The problem is to apply at most two swap operations on the number num… Read More »

Here given a range from low to high and given a number k.You have to find out the number of count which a number has… Read More »

Given a number and to find first and last digit of a number. Examples: Input : 12345 Output : First digit: 1 last digit :… Read More »

Given N, check whether it is a Narcissistic number or not. Note:Narcissistic Number is a number that is the sum of its own digits each… Read More »

Given n, find count of n digit Stepping numbers. A number is called stepping number if all adjacent digits have an absolute difference of 1.… Read More »