Skip to content

Tag Archives: Number Divisibility

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 a number N, the task is to count the minimum number of digits to be removed from N to make it divisible by 4.… Read More
Given a numeric string S, the task is to find the minimum and the maximum number of digits that must be removed from S such… Read More
Given array arr[] consisting of N non-negative integers, and an integer K, the task is to check if GCD of all composite numbers in the… Read More
In this article, We will see how to write the program to find the given number is Even or Odd Using the Recursion Method. If… Read More
We can input a set of integer, and check which integers in this range, beginning with 1 are not divisible by 2 or 3, by… Read More
Given an integer N, the task is to reduce N to 1 by a minimum number of operations involving multiplication by 2 and division by… Read More
Given two integers L and R, the task is to print all the even and odd numbers from L to R using recursion. Examples: Input:… Read More
Given an array arr[] consisting of N positive integers, the task is to find a subarray of length K such that concatenation of each element… Read More
Given an integer N, the task is to check if the given number N is even or odd. If it is found to be even,… Read More
Given two numbers n and m. The task is to find the quotient and remainder of two numbers by dividing n by m. Examples: Input:… Read More
Given an integer X, the task is to find the possible values of Q for the pair (Q, R) such that their product is equal… Read More
Given an integer N, the task is to count the minimum steps required to reduce the value of N to 0 by performing the following… Read More
Given an integer N, the task is to check if the concatenation of first N natural numbers is divisible by 3 or not. Print Yes… 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 Explanation: 10 is… Read More