## 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 »

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 »

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

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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