## Round the given number to nearest multiple of 10 | Set-2

Given a large positive integer represented as a string str. The task is to round this number to the nearest multiple of 10. Examples: Input:… Read More »

## Find N % 4 (Remainder with 4) for a large value of N

Given a string str representing a large integer, the task is to find the result of N % 4. Examples: Input: N = 81 Output:… Read More »

## Sum of first N natural numbers when N is extremely large

Given a positive integer n, the task is to find the sum of the first n natural numbers given that n is very large (1… Read More »

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

Given a very large number in the form of a string, the task is to check if the number is divisible by 75 or not.… Read More »

## Check if a large number is divisible by 2, 3 and 5 or not

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

## Program to find remainder when large number is divided by r

Given a Number N, the task is to find the Remainder when N is divided by R (a two digit Number). The input of the… Read More »

## Check if a large number can be divided into two or more segments of equal sum

Given a very large Number N. The task is to check if the number can be divided into two or more segments of an equal… Read More »

## Modulo power for large numbers represented as strings

Given two numbers sa and sb represented as strings, find ab % MOD where MOD is 1e9 + 7. The numbers a and b can… Read More »

## Maximum number by concatenating every element in a rotation of an array

Given an array of N elements. The task is to print the maximum number by concatenating every element in each rotation. In every rotation, the… Read More »

## LCM of two large numbers

Given two large numbers ‘a’ and ‘b’ such that(10^20<=a, b<=10^300). Find the LCM of two large numbers given. Examples: Input: a = 234516789234023485693020129 b =… Read More »

## Given two numbers as strings, find if one is a power of other

Given two large numbers as strings, find if one is the power of another. For Example : Examples: Input : a = “374747”, b =… Read More »

## Squares of numbers with repeated single digits | Set 1 (3, 6 and 9)

Given a number made of single digits, find its square. It may be assumed that the single digits are 3, 6 and 9. Numbers can… Read More »

## Check whether a very large number of the given form is a multiple of 3.

Consider a very long K-digit number N with digits d0, d1, …, dK-1 (in decimal notation; d0 is the most significant and dK-1 the least… Read More »

## Large number arithmetic using doubly linked list

Given two very large numbers in form of strings. Your task is to apply different arithmetic operations on these strings. Prerequisite : Doubly Linked List.… Read More »

## Form a number using corner digits of powers

Given two integers N and X. Make a number in such a way that the number contains the first and last digit occurring in .… Read More »