## Minimum number of operations required to reduce N to 1

Given an integer element ‘N’, the task is to find the minimum number of operations that need to be performed to make ‘N’ equal to… Read More »

- Sum of the multiples of two numbers below N
- Remove characters from a numeric string such that string becomes divisible by 8
- Smallest perfect square divisible by all elements of an array
- Count of sub-sets of size n with total element sum divisible by 3
- Highest power of two that divides a given number
- Program to find Nth term divisible by a or b
- Minimum number of operations required to reduce N to 1
- Check if a large number is divisible by 2, 3 and 5 or not
- Count of sub-strings that are divisible by K
- Split a number into 3 parts such that none of the parts is divisible by 3
- Check if the sum of perfect squares in an array is divisible by x
- Find minimum x such that (x % k) * (x / k) == n
- Sum of common divisors of two numbers A and B
- Minimum removals in a number to be divisible by 10 power raised to K
- Longest subarray with elements divisible by k
- Find the multiple of x which is closest to a^b
- Possible cuts of a number such that maximum parts are divisible by 3
- Minimum and Maximum element of an array which is divisible by a given number k
- Largest Divisor of a Number not divisible by a perfect square
- Minimum positive integer divisible by C and is not in range [A, B]
- Sum of first N natural numbers which are divisible by 2 and 7
- Smallest multiple of 3 which consists of three given non-zero digits
- Maximum count of equal numbers in an array after performing given operations
- Find all numbers that divide maximum array elements
- Largest number with the given set of N digits that is divisible by 2, 3 and 5
- Program to find count of numbers having odd number of divisors in given range
- Smallest number greater than or equal to N divisible by K
- Minimum number of operations required to delete all elements of the array
- Minimum value that divides one number and divisible by other
- Sum of all the multiples of 3 and 7 below N

Given an integer element ‘N’, the task is to find the minimum number of operations that need to be performed to make ‘N’ equal to… Read More »

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 »

Suppose you a given an array. You have to find the length of the longest subarray such that each and every element of it is… Read More »

Given an interval of integers [A, B]. For each number in this interval compute its greatest odd divisor. Output the sum of these divisors. Examples:… Read More »

Given an unsigned integer x. Round it up to the next greater multiple of 8 using bitwise operations only. Examples: Input : 35 Output :… Read More »

Given an unsigned integer x. Round it down to the next smaller multiple of 8 using bitwise operations only. Examples: Input : 35 Output :… Read More »

Given two integers A and B. The task is to count how many numbers in the interval [ A, B ] have an odd number… Read More »

Given a range, we need to check if is their any pairs in the segment whose GCD is divisible by k. Examples: Input : l=4,… Read More »

Given two integers and . The task is to find the Nth term which is divisible by either of or . Examples : Input :… Read More »

Given an array of integers ‘arr’ and a number x, the task is to sort all the elements which are multiples of x of the… Read More »

Given a number N. The task is to find the sum of all those numbers from 1 to N that are divisible by 2 or… Read More »

Given a number n, find the highest power of 2 that divides n. Examples: Input : n = 48 Output : 16 Highest power of… Read More »

Given an array of integers. The task is to find the maximum count of equal numbers in an array after applying the given operation any… Read More »

Given an array, the task is to find the minimum and maximum elements in the array which is divisible by a given number k. Examples:… Read More »

Given an array containing N elements. Each element is either 0 or 5. Find the largest number divisible by 90 that can be made using… Read More »