## Minimum number of operations on a binary string such that it gives 10^A as remainder when divided by 10^B

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

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

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 »

Given an integer and an integer array , the task is to find the minimum possible sum of all the elements of the array after… Read More »

Given a number N, the task is to find the smallest number not less than N, which has all digits odd. Examples: Input: N =… Read More »