Given an array arr[] consisting of N positive integers and an integer K, the task is to minimize the maximum value of the array by… Read More

# Category Archives: Mathematical

Given an array arr[] consisting of N positive integers and a string S of length (N – 1), containing characters ‘+’ and ‘*’, the task… Read More

This article focuses on calculating the address of any element in a 1-Dimensional, 2-Dimensional, and 3-Dimensional array in Row major order and Column major order.… Read More

Given a binary array arr[] of size N, the task is to check if the array arr[] can be made sorted by removing any subsequence… Read More

Given an array arr[] consisting of N integers and an integer M (initially 1), the task is to find the maximum sum of array elements… Read More

Given an integer N, the task is to find the number of ways to represent the number N as sum of perfect squares. Examples: Input:… Read More

Given two numbers N and M, the task is to find the number of sorted arrays that can be formed of size M using first… Read More

Given an array arr[] consisting of N integers, the task is to find the maximum sum of a non-empty subsequence such that each pair of… Read More

Given a positive 32-bit integer N, the task is to find the maximum between the value of N and the number obtained by decimal representation… Read More

Given a sorted array arr[] consisting of N integers, representing points on a line and an integer K, the task is to find any point… Read More

Given an array A[ ] of size N where each array element represents the length of a rope, the task is to find the number… Read More

Given six integers, a, b, c, i, j, and k representing the equation of the circle and equation of the line , the task is to find… Read More

Given a positive integer N, the task is to find the sum of the Euler Totient Function for all the divisor of the given number… Read More

Given four integers a, b, c, and d, which represents the coefficient of the equation of the plane ax + by + cz + d… Read More