## Writing power function for large numbers

We have given two numbers x and n which are base and exponent respectively. Write a function to compute x^n where 1 <= x, n… Read More »

We have given two numbers x and n which are base and exponent respectively. Write a function to compute x^n where 1 <= x, n… 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 a large Number the task is to check the number is divisible by 12 or not . Examples: Input : 12244824607284961224 Output : Yes… Read More »

Given two array A[0….n-1] and B[0….m-1] of size n and m respectively, representing two numbers such that every element of arrays represent a digit. For… Read More »

Given a very large number N, we need to count the total ways such that if we divide the number into two parts a and… Read More »

The program is to find a mathematical series, where we need to accept the value of n and m. n is the base number and… Read More »

Given a large number, the task is to check if number is divisible by 13 or not. Examples: Input : 637 Output : 637 is… Read More »

Given a positive integer, find the largest number that could be generated by swapping only two digits at most once. Examples: Input: 2736 Output :… Read More »

Given a number of at most 100 digits. We have to check if it is possible, after removing certain digits, to obtain a number of… Read More »

Given a non-negative number N in the form of string. The task is to apply at most one swap operation on the number N so… Read More »

Given a number n, the task is to find the remainder when n is divided by 11. The input of number may be very large.… Read More »

Given a very large number num (1 <= num <= 10^1000), print the number of digits that needs to be removed to make the number… Read More »

Given a very large number. Check its divisibility by 15. Examples: Input: 31 Output: No Input : num = “156457463274623847239840239 402394085458848462385346236 482374823647643742374523747 264723762374620” Output: Yes… Read More »

Given a string of numbers and given another number (say m) [0

Given a large number n, we need to check whether it is divisible by 37. Print true if it is divisible by 37 otherwise False.… Read More »