## Check whether a large number represented as array is divisible by Y

Given a large integer X represented as an array arr[] where each arr[i] stores a digit in X. The task is to check whether the… Read More »

- Minimum steps to make all the elements of the array divisible by 4
- Predict the winner in Coin Game
- Smallest N digit number which is a multiple of 5
- Highest power of 2 that divides a number represented in binary
- Minimum number of operations on a binary string such that it gives 10^A as remainder when divided by 10^B
- Number of times the largest perfect square number can be subtracted from N
- Maximum possible elements which are divisible by 2
- Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
- Predict the winner of the game on the basis of absolute difference of sum by selecting numbers
- Count numbers in range 1 to N which are divisible by X but not by Y
- Count of numbers from range [L, R] whose sum of digits is Y
- Check if product of first N natural numbers is divisible by their sum
- Highest power of a number that divides other number
- Check whether a large number represented as array is divisible by Y
- Number of digits before the decimal point in the division of two numbers

Given a large integer X represented as an array arr[] where each arr[i] stores a digit in X. The task is to check whether the… Read More »

Given an integer array arr of size N. The task is to find the maximum possible elements in the array which are divisible by 2… Read More »

Given a binary string str of length N and two integers A and B such that 0 ≤ A < B < n. The task… Read More »

Given a binary string str, the task is to find the largest power of 2 that divides the decimal equivalent of the given binary number.… Read More »

There are two players P1 and P2 and two piles of coins consisting of M and N coins respectively. At each turn, a player can… Read More »

Given two numbers N and M, the task is to find the highest power of M that divides N. Note: M > 1 Examples: Input:… Read More »

Given an integer N ≥ 1, the task is to find the smallest N digit number which is a multiple of 5. Examples: Input: N… Read More »

Given an integer N, the task is to check whether the product of first N natural numbers is divisible by the sum of first N… Read More »

Given a number N. At every step, subtract the largest perfect square( ≤ N) from N. Repeat this step while N > 0. The task… Read More »

Given an array of N numbers. Two players X and Y play a game where at every step one player selects a number. One number… Read More »

Given an array of size n, the task is to find the minimum number of steps required to make all the elements of the array… Read More »

Given an integer Y and a range [L, R], the task is to find the count of all numbers from the given range whose sum… Read More »

Given two integers a and b. The task is to find the number of digits before the decimal point in a / b. Examples: Input:… Read More »

Given two integers L and R. The task is to find the count of all even numbers in the range [L, R] whose sum of… Read More »

Given two positive integers X and Y, the task is to count the total numbers in range 1 to N which are divisible by X… Read More »