## Maximum number that can be display on Seven Segment Display using N segments

Given a positive integer N. The task is to find the maximum number that can be displayed on seven segment display using N segments. Seven… Read More »

## Find the sum of digits of a number at even and odd places

Given a number N, the task is to find the sum of digits of a number at even and odd places. Examples: Input: N =… Read More »

## Program to calculate product of digits of a number

Given a number, the task is to find the product of the digits of a number. Examples: Input: n = 4513 Output: 60 Input: n… Read More »

## Find the longest subsequence of an array having LCM at most K

Given an array arr[] of N elements and a positive integer K. The task is to find the longest sub-sequence in the array having LCM… Read More »

## Sum of two numbers where one number is represented as array of digits

Given an array arr[] of digits and an integer K, the task is to find num(arr) + K where num(arr) is the number formed by… Read More »

## Longest subarray such that adjacent elements have at least one common digit | Set – 2

Given an array of N integers, the task is to find the length of the longest subarray such that adjacent elements of the subarray have… Read More »

## Third last digit in 5^N for given N

Given a positive integer N. The task is to find the value of 3rd digit from last (right-most) of 5N. Examples: Input : N =… Read More »

## Find the count of numbers that can be formed using digits 3, 4 only and having length at max N.

Given a number N. Find the count of such numbers that can be formed using digits 3 and 4 only and having length at max… Read More »

## Greatest number less than equal to B that can be formed from the digits of A

Given two integers A and B, the task is to find the greatest number ≤ B that can be formed using all the digits of… Read More »

## Check if product of digits of a number at even and odd places is equal

Given an integer N, the task is to check whether the product of digits at even and odd places of a number are equal. If… Read More »

## Numbers in a Range with given Digital Root

Given an integer K and a range of consecutive numbers [L, R]. The task is to count the numbers from the given range which have… Read More »

## Find Nth positive number whose digital root is X

Given a number X ( 1<= X <= 9) and a positive number N, find the Nth positive number whose digital root is X. Digital… Read More »

## Sort the numbers according to their sum of digits

Given an array arr[] of N non-negative integers, the task is to sort these integers according to sum of their digits. Examples: Input: arr[] =… Read More »

## Find the number of solutions to the given equation

Given three integers A, B and C, the task is to find the count of values of X such that the following condition is satisfied,… Read More »

## Minimum number of given moves required to make N divisible by 25

Given a number N(1 ≤ N ≤ 1018) without leading zeros. The task is to find the minimum number of moves required to make N… Read More »