Skip to content

# Category Archives: Mathematical

Given an array arr[] consisting of N integers, the task is to split the array into subarrays such that the sum of the difference between… Read More
Given an array arr[] consisting of N integers, the task is to find the minimum number of array elements required to be incremented to make… Read More
Given three positives integers A, B, and C, the task is to count the minimum number of flipping of bits required in A and B,… Read More
Given an array arr[] consisting of N positive integers, the task is to find the number of array elements whose count of divisors is a… Read More
Golden Ratio: Two numbers, say A and B are said to be in the golden ratio if their ratio equals the ratio of the sum… Read More
Given two positive integers A, B, and an array D[] consisting only of digits [0-9], the task is to check if it is possible to… Read More
Given four positive integers A, B, C, and D representing the length of sides of a Cyclic Quadrilateral, the task is to find the area… Read More
Given a string S consisting of N alphabets and two positive integers L and U, representing the cost of converting any character to lowercase and… Read More
Given an array arr[] consisting of N strings, the task is to sort the array in ascending order after modifying each string by removing all… Read More
Given a positive integer N, the task is to find the count of prime numbers less than or equal to N that can be represented… Read More
Given three non-negative integers A, B, and C, the task is to count the numbers in the range [1, C] that can be reduced to… Read More
Given an array arr[] consisting of N integers, the task is to find the maximum value of (arr[i] + arr[j] + i − j) for… Read More
Given a positive integer N, the task is to find the smallest semi-prime number such that the difference between any of its two divisors is… Read More
Given a string S of size N consisting of only ‘(‘ and ‘)’ only and a positive integer K, the task is to check if… Read More
Given a positive integer N, the task is to check if the given number N can be represented as the product of two positive perfect… Read More