## Self Numbers

A Number N is said to be Self Number if it can not be written as M + sum of digits of M for any… Read More »

- Find XOR of all elements in an Array
- Check whether a number can be represented as difference of two squares
- Digital Root of a given large integer using Recursion
- C Program to Print all digits of a given number
- Largest number possible after removal of K digits
- Count numbers in a range with digit sum divisible by K having first and last digit different
- Find the maximum Even Digit Sum node in the given tree
- Count of N digit Numbers whose sum of every K consecutive digits is equal
- Count of numbers upto N having absolute difference of at most K between any two adjacent digits
- Program to print the given digit in words
- Maximize product of digit sum of consecutive pairs in a subsequence of length K
- Array Range Queries to find the Maximum Armstrong number with updates
- Find a N-digit number such that it is not divisible by any of its digits
- Sum and Product of all even digit sum Nodes of a Singly Linked List
- Smallest number containing all possible N length permutations using digits 0 to D
- Count of N-digit numbers with absolute difference of adjacent digits not exceeding K | Set 2
- Find all Autobiographical Numbers with given number of digits
- Count of unique digits in a given number N
- Maximise the sum of two Numbers using at most one swap between them
- Find position of given term in a series formed with only digits 4 and 7 allowed
- GCD of elements occurring Fibonacci number of times in an Array
- How to check if string contains only digits in Java
- Find numbers that divide X and Y to produce the same remainder
- Sum of all N digit palindromic numbers divisible by 9 formed using digits 1 to 9
- Print all numbers in given range having digits in strictly increasing order
- Find smallest possible Number from a given large Number with same count of digits
- Count of N-digit numbers with absolute difference of adjacent digits not exceeding K
- Queries for count of even digit sum elements in given range using MO's Algorithm
- Find last digit in factorial
- Count of perfect squares of given length

A Number N is said to be Self Number if it can not be written as M + sum of digits of M for any… Read More »

James Joyce’s “Ulysses” sequence represents the number of digits in NNN. First few terms in James Joyce’s “Ulysses” sequence are 1, 2, 13, 155, 2185,… Read More »

Given two integers N and B, the task is to check N is a Digitally balanced number in base B. Digitally balanced numbers in the… Read More »

Given a number N and an integer K, the task is to find the smallest number greater than or equal to N, formed using only… Read More »

Given two integer N and K, the task is to find the size of the smallest string that contains all permutations of length N that can… Read More »

Given a large number in form of string str of size N, the task is to count the subsequence of length 4 whose digit are… Read More »

Given a very large number N in form of string and a number K, the task is to print all the K-digit repeating numbers whose… Read More »

Given a positive integers N, the task is to find the smallest N digit number divisible by N. Examples: Input: N = 2 Output: 10… Read More »

Given a positive N, the task is to find the last two digits of 7N. Examples: Input: N = 5 Output: 07 Explanation: The value… Read More »

Given an integer N, the task is to find the smallest number whose sum of digits is N2.Examples: Input: N = 4 Output: 79 24 = 16 sum… Read More »

Given a positive integers N, the task is to find the smallest number whose sum of digits is N.Example: Input: N = 10 Output: 19… Read More »

Given an integer N, the task is to check if N is a Zuckerman Number. Zuckerman Number is a number which is divisible by the… Read More »

Given a number N in the form of a string, the task is to check whether the given number is balanced or not. Balanced Number:… Read More »

Given an integer N, the task is to check whether N contains a digit D such that it is the average of all other digits… Read More »

There is a series of numbers that have only digits, 4 and 7, and numbers are arranged in increasing order. The first few numbers of… Read More »