Given a number N and a digit K, the task is to calculate the number of ways to form a number with the maximum number… Read More

# Tag Archives: number-digits

Given a positive integer N, the task is to count the number of N-digit numbers having absolute difference between consecutive digits in non-increasing order. Examples:… Read More

Given a number N, the task is to check if for every value of i (0 <= i <= len), the first i digits of… Read More

Given a numeric string S, the task is to find the number of ways to partition a string into substrings consisting of digits in increasing… Read More

Given a positive integer N, the task is to maximize the integer N by rearranging the digits and check if the sum of the left… Read More

Given two positive integers X and Y, the task is to check if it is possible to convert the number X into Y, either by… Read More

Given an integer N, the task is to find the Kth digit from the end of an integer N. If the Kth digit is not… Read More

Given an integer N, the task is to count the number of N-digit numbers such that each digit, except the first and second digits, is… Read More

Given an integer N, the task is to count the number of pairs (X, Y) such that X + Y = X ^ Y and… Read More

Given an integer N, the task to print the count numbers from the range [1, N] whose adjacent digits are not co-prime. Two numbers A… Read More

Given a positive integer N, the task is to find the largest positive number made up of distinct digits having the sum of its digits… Read More

Given a positive integer N, the task is to check if the sum of the digits of N is strictly greater than the product of… Read More

Given a positive integer N and a digit D, the task is to check if N can be represented as a sum of positive integers… Read More

Given two N-digit positive integers X and Y, the task is to find the minimum absolute difference between both the integers possible by rearranging the… Read More

Given an array arr[] consisting of N positive integers, the task is to find the maximum possible sum of the remaining array elements after repeatedly… Read More