## Decimal representation of given binary string is divisible by 5 or not

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

## Number of substrings divisible by 8 but not by 3

Given a string of digits “0-9”. The task is find the number of substrings which are divisible by 8 but not by 3. Examples :… Read More »

## Count of m digit integers that are divisible by an integer n

Given two numbers m and n, count number of m digit numbers that are divisible by n. Examples: Input : m = 2 n =… Read More »

## Check if a large number is divisible by 25 or not

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

## Check a large number is divisible by 16 or not

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

## Check if a large number is divisible by 5 or not

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

## Nth Square free number

Given a number n, find the n-th square-free number. A number is square-free if it is not divisible by a perfect square other than 1.… Read More »

## Number of even substrings in a string of digits

Given a string of digits 0 – 9. The task is to count number of substrings which when convert into integer form an even number.… Read More »

## Subset with sum divisible by m

Given a set of non-negative distinct integers, and a value m, determine if there is a subset of the given set with sum divisible by… Read More »

## Number of substrings divisible by 6 in a string of integers

Given a string consisting of integers 0 to 9. The task is to count the number of substrings which when convert into integer are divisible… Read More »

## Find the largest multiple of 3 from array of digits | Set 2 (In O(n) time and O(1) space)

Given an array of digits (contain elements from 0 to 9). Find the largest number that can be made from some or all digits of… Read More »

## Check if a larger number divisible by 36

Given a number, check whether a given number is divisible by 36 or not. The number may be very large and may not fit in… Read More »

## Check if a large number is divisible by 9 or not

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

## Count rotations divisible by 4

Given a large positive number as string, count all rotations of the given number which are divisible by 4. Examples: Input: 8 Output: 1 Input:… Read More »

## Check if a large number is divisible by 6 or not

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