# Category Archives: Mathematical

## BCD addition of given Decimal numbers

Given two numnbers A and B, the task is to perform BCD Addition of the given numbers. Examples: Input: A = 12, B = 20… Read More »

## Program to find the indefinite Integration of the given Polynomial

Given a polynomial string str, the task is to integrate the given string and print the string after integrating it. Note: The input format is… Read More »

## Program to differentiate the given Polynomial

Given a polynomial string str, the task is to differentiate the given string and print the string after differentiating it. Note: The input format is… Read More »

## Distance between end points of Hour and minute hand at given time

Given four integers H, M, L1, and L2, which denotes the time as hour and minutes in a Clock of 12-Hour format and L1 and… Read More »

## Factorial of Large numbers using Logarithmic identity

Given a very large number N, the task is to find the factorial of the number using Log. Factorial of a non-negative integer is the… Read More »

## Distance traveled by Hour and Minute hand in given Time interval

Given two numbers H and M which denotes the length of the hour and minute hand and two time intervals(say T1 & T2) in form… Read More »

## Count of numbers in Array ending with digits of number N

Given a number N and an array arr[] consisting of K numbers, the task is to find the count of numbers in the array which… Read More »

## Check if a number ends with another number or not

Given two numbers A and B where (A > B), the task is to check if B is a suffix of A or not. Print… Read More »

## Check if count of even divisors of N is equal to count of odd divisors

Given a positive integer N, the task is to check whether the count of even divisors and odd divisors of N are equal or not.… Read More »

## Full domain Hashing with variable Hash size in Python

A cryptographic hash function is a special class of hash function that has certain properties which make it suitable for use in cryptography. It is… Read More »

## Count of ways to represent N as sum of a prime number and twice of a square

Given an integer N, the task is to count the number of ways so that N can be written as the sum of a prime… Read More »

## Nth term of a sequence formed by sum of current term with product of its largest and smallest digit

Given two numbers N and K, where K represents the starting term of the sequence. The task is to find the Nth term of a… Read More »

## Sum of cost of all paths to reach a given cell in a Matrix

Given a matrix grid[][] and two integers M and N, the task is to find the sum of cost of all possible paths from the… Read More »

## Program to convert Degree to Radian

Given the angle in degree, the task is to convert this into radians. Examples: Input: degree = 45 Output: radian = 0.785398 Input: degree =… Read More »

## Count of subarrays whose sum is a perfect square

Given an array arr[] with positive and negative elements, the task is to count all subarrays whose sum is a perfect square. Examples: Input: arr[]… Read More »