## Check divisibility in a binary stream

Stream of binary number is coming, the task is to tell the number formed so far is divisible by a given number n. At any… 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
- 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
- Largest Divisor of a Number not divisible by a perfect square
- 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
- Minimum number of operations required to delete all elements of the array
- Smallest number greater than or equal to N divisible by K
- Minimum value that divides one number and divisible by other
- Sum of all the multiples of 3 and 7 below N

Stream of binary number is coming, the task is to tell the number formed so far is divisible by a given number n. At any… Read More »

Given a number (as string) and two integers a and b, divide the string in two non-empty parts such that the first part is divisible… Read More »

You are given an array of positive and/or negative integers and a value K . The task is to find count of all sub-arrays whose… Read More »

Given two numbers x and y (x <= y), find out the total number of natural numbers, say i, for which i! is divisible by… Read More »

Given an array of n positive integers. Initially we are at first position. We can jump to position y (1 <= x <= n) from… Read More »

Given a number n find the smallest number evenly divisible by each number 1 to n. Examples: Input : n = 4 Output : 12… Read More »

Given a large number, n (having number digits up to 10^6) and various queries of the below form : Query(l, r) : find if the… Read More »

Given a large number, n (having number digits up to 10^6) and various queries of the form : Query(l, r) : find if the sub-string… Read More »

Given a number n, write a function that returns true if n is divisible by 9, else false. The most simple way to check for… Read More »

An array of size n is given. The array contains digits from 0 to 9. Generate the largest number using the digits in the array… Read More »

Given an array of non-negative integers. Find the largest multiple of 3 that can be formed from array elements. For example, if the input array… Read More »

Given a number, check if it is divisible by 7. You are not allowed to use modulo operator, floating point arithmetic is also not allowed.… Read More »

Deterministic Finite Automaton (DFA) can be used to check whether a number “num” is divisible by “k” or not. If the number is not divisible,… Read More »

Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12,… Read More »