##
To check divisibility of any large number by 999
June 26, 2017

You are given an n-digit large number, you have to check whether it is divisible by 999 without dividing or finding modulo of number by… Read More »

June 26, 2017

You are given an n-digit large number, you have to check whether it is divisible by 999 without dividing or finding modulo of number by… Read More »

June 22, 2017

Given a large number (represented as string) which has to divided by another number (represented as int data type). The large number can be very… Read More »

June 12, 2017

Given a number n, write code to find the sum of digits in the factorial of the number. Given n <= 5000 Examples: Input :… Read More »

June 7, 2017

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 »

May 21, 2017

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 »

May 11, 2017

Given an integer n and its base b. The task is to check if given number is Pandigital Number in the given base or not.… Read More »

May 5, 2017

Given a number n, find n-th Fibonacci Number. Note that n may be large. Examples: Input : 100 Output : 218922995834555169026 Input : 500 Output… Read More »

May 1, 2017

Given an integer a, b, m. Find (a * b ) mod m, where a, b may be large and their direct multiplication may cause… Read More »

April 27, 2017

The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then… Read More »

April 24, 2017

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 »

April 19, 2017

Given two numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find sum of… Read More »

April 1, 2017

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 »

March 31, 2017

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 »

March 28, 2017

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 »