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

# Tag Archives: number-digits

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

Given two numbers A and B, the task is to remove the trailing zeros present in the sum of the two given numbers using a… Read More

Given an array arr[] consisting of N positive integers, the task is to sort the array in increasing order with respect to the count of… Read More

Given two positive integers A, B, and an array D[] consisting only of digits [0-9], the task is to check if it is possible to… Read More

Given an integer N, the task is to print all distinct permutations of the number N. Examples: Input: N = 133Output: 133 313 331Explanation:There are… Read More