Given a positive integer K and two arrays A[] and B[] consisting of M and N positive integers from the range [1, K] respectively, the… Read More

# Category Archives: Mathematical

Given an array arr[] of N positive integers and an integer K, the task is to find the minimum number of insertions of any positive… Read More

Given an integer A representing the external angle (in degrees) of a regular convex polygon, the task is to find the sum of the sides… Read More

Given an array arr[] consisting of coordinates of N points on an XY-plane, the task is to find the sum of squared distances between all… Read More

Given a positive integer N, the task is to find the number of irreflexive relations that can be formed over the given set of elements.… Read More

Given four integers A, B, C and N, where A, B, C represents the first three numbers of the geekonacci series, the task is to… Read More

Given an integer N, the task is to count all arithmetic progression with common difference equal to 1 and the sum of all its elements… Read More

Given an array arr[] consisting of N positive integers, the task is to find the nearest perfect power of 2 of the nearest perfect squares… Read More

Given an integer K denoting the fuel tank capacity of a car running at the cost of 1 liter / mtr on a straight path… Read More

Given an array arr[] consisting of queries of the form {L, R}, the task for each query is to count the numbers in the range… Read More

Given a binary string S, the task is to find the minimum number of characters required to be removed from S, such that all the… Read More

Given an array A[] consisting of permutation of first N natural numbers, the task is to find the minimum number of operations required to modify… Read More

Given two positive integers N and X, the task is to count the occurrences of the given integer X in an N-length square matrix generated… Read More

Given an array Q[] consisting of N integers, the task for each element of the array Q[] is to check whether any of the numbers,… Read More