## Check if a number is formed by Concatenation of 1, 14 or 144 only

Given a number . The task is to check if the number is formed by concatenating the numbers 1, 14 and 144 only any number… Read More »

## Print all numbers less than N with at-most 2 unique digits

Given a number N(less than 10^9). The task is to print all the numbers less than N which are having a maximum of 2 unique… Read More »

## Check whether product of digits at even places is divisible by sum of digits at odd place of a number

Given a number N and numbers of digits in N, the task is to check whether the product of digits at even places of a… Read More »

## Largest number not greater than N all the digits of which are odd

Given a number N, the task is to find the largest number not greater than N which has all of it’s digits as odd. Examples:… Read More »

## Maximum sum and product of the M consecutive digits in a number

Given a number in the form of a string. The task is to find the maximum sum and product of m consecutive digits that are… Read More »

## Largest N digit number divisible by given three numbers

Given four integers x, y, z and n, the task is to find the largest n digit number which is divisible by x, y and… Read More »

## Smallest odd digits number not less than N

Given a number N, the task is to find the smallest number not less than N, which has all digits odd. Examples: Input: N =… Read More »

## Sum and Product of digits in a number that divide the number

Given a positive integer N. The task is to find sum and product of digits of the number which evenly divides the number n. Examples:… Read More »

## Check if any permutation of a number is divisible by 3 and is Palindromic

Given an integer . The task is to check whether any of its permutations is a palindrome and divisible by 3 or not. Examples :… Read More »

## N digit numbers divisible by 5 formed from the M digits

Given M unique digits and a number N. The task is to find the number of N-digit numbers which can be formed from the given… Read More »

## Check if the Xor of the frequency of all digits of a number N is zero or not

Given a number N, the task is to check if xor value of the frequency of the digits is zero or not. Examples: Input: N… Read More »

## Check whether product of digits at even places of a number is divisible by K

Given a number N, the task is to check whether the product of digits at even places of a number is divisible by K. If… Read More »

## Check whether sum of digits at odd places of a number is divisible by K

Given two integer ‘N’ and ‘K’, the task is to find the sum of digits of ‘N’ at it’s odd places (right to left) and… Read More »

## Primality test for the sum of digits at odd places of a number

Given an integer ‘n’, the task is to check whether the sum of digits at the odd positions (from right to left) is prime or… Read More »

## Immediate smallest number after re-arranging the digits of a given number

Given a number print the immediate smallest number formed by re-arranging the digits of a given number. Print “Not Possible” if it is not possible… Read More »