# Tag Archives: Number Divisibility

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 binary string str, the task is to find the largest power of 2 that divides the decimal equivalent of the given binary number. Examples:  … 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: N =… 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
Pre-requisites: Recursion, Dynamic Programming, Digit DP Given an integer Y and a range [L, R], the task is to find the count of all numbers… 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: a… 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 they are… Read More