## Sum of largest divisible powers of p (a prime number) in a range

Given a range [L, R], and a prime number P. We are required to find the sum of the highest power of P in all… Read More »

Given a range [L, R], and a prime number P. We are required to find the sum of the highest power of P in all… Read More »

Given a string of binary characters, check if it is multiple of 3 or not. Examples : Input : 1 0 1 0 Output :… Read More »

Given a number n, check if it is divisible by 8 using bitwise operators. Examples: Input : 16 Output :YES Input :15 Output :NO Recommended:… Read More »

Given a number, the task is to check if number is divisible by 20. The input number may be large and it may not be… Read More »

Given an array of non-negative numbers, find length of smallest subarray whose product is a multiple of k. Examples : Input : arr[] = {1,… Read More »

Given a large Number the task is to check the number is divisible by 12 or not . Examples: Input : 12244824607284961224 Output : Yes… Read More »

The problem is to check whether the decimal representation of the given binary number is divisible by 20 or not. Take care, the number could… Read More »

Given an array of positive integers of length n. Our task is to find minimum number of operations to convert an array so that arr[i]… Read More »

Given an array of integers, the task is to find whether it’s possible to construct an integer using all the digits of these numbers such… Read More »

Given multiple numbers and a number n, the task is to print the reminder after multiply all the number divide by n. Examples: Input :… Read More »

Given a n x n matrix of integers and a positive integer k. The problem is to count all sub-matrices having sum divisible by the… Read More »

Given a floating point number, check whether it is even or odd. We can check whether a integer is even or odd by dividing its… Read More »

Given x, y, z and n, find smallest n digit number which is divisible by x, y and z. Examples: Input : x = 2,… Read More »

Given two positive numbers x and y. Find the maximum valued integer a such that: a divides x i.e. x % a = 0 a… Read More »

Given 3 numbers x, y and n compute the division (x/y) upto n decimal places. Examples : Input : x = 22, y = 7,… Read More »