## Remove characters from a numeric string such that string becomes divisible by 8

Given a non-negative integer represented in the form of a numeric string str. Remove zero or more characters from the string such that the number… Read More »

- Check if any permutation of a large number is divisible by 8
- Sum of the multiples of two numbers below N
- Generating numbers that are divisor of their right-rotations
- Smallest perfect square divisible by all elements of an array
- 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
- Minimum removals in a number to be divisible by 10 power raised to K
- Find minimum x such that (x % k) * (x / k) == n
- Program to find Nth term divisible by a or b
- Check if a large number is divisible by 2, 3 and 5 or not
- Sum of common divisors of two numbers A and B
- Largest Divisor of a Number not divisible by a perfect square
- Find the multiple of x which is closest to a^b
- Sum of first N natural numbers which are divisible by 2 and 7
- Minimum and Maximum element of an array which is divisible by a given number k
- Minimum number of operations required to reduce N to 1
- Smallest multiple of 3 which consists of three given non-zero digits
- Program to find remainder when large number is divided by r
- Minimum value that divides one number and divisible by other
- Longest subarray with elements divisible by k
- Highest power of two that divides a given number
- Maximum count of equal numbers in an array after performing given operations
- Number of divisors of a given number N which are divisible by K
- Possible cuts of a number such that maximum parts are divisible by 3
- Round to next greater multiple of 8
- Sum of greatest odd divisor of numbers in given range
- Find all numbers that divide maximum array elements
- Sum of the numbers upto N that are divisible by 2 or 5
- Check if a number with even number of digits is palindrome or not
- Rearrange all elements of array which are multiples of x in increasing order

Given a non-negative integer represented in the form of a numeric string str. Remove zero or more characters from the string such that the number… Read More »

Given an integer K and a numeric string str (all the characters are from the range [‘0’, ‘9’]). The task is to count the number… Read More »

Given an array arr[], the task is to find the smallest perfect square which is divisible by all the elements of the given array. Examples:… Read More »

Given a Large number N ( number of digits in N can be up to 105). The task is to find the cuts required of… Read More »

Given three non-zero digits 0 < A, B, C < 9. The task is to find the smallest number divisible by 3 all of whose… Read More »

Given two positive integers n and k. Find minimum positive integer x such that the (x % k) * (x / k) == n, where… Read More »

Given two integer p and q, the task is to find the minimum possible number x such that q % x = 0 and x… Read More »

You are given a number ‘N’. Your task is to split this number into 3 positive integers x, y and z, such that their sum… Read More »

Given two positive integers N and K. Find the minimum number of digits that can be removed from the number N such that after removals… Read More »

Given an array arr[] and an integer x, the task is to check whether the sum of all the perfect squares from the array is… Read More »

Given three integer A, B and N. The task is to find the sum of all the elements below N which are multiples of either… Read More »

Given a positive integer N. Find the largest divisor of the given number that is not divisible by a perfect square greater than 1. Examples:… Read More »

Given three integers a, b and x, the task is to get the multiple of x which is closest to ab. Examples: Input: a =… Read More »

Given three integers A, B and N, repeat the following process N times: Add a digit to A such that after adding it, A is… Read More »