# Category Archives: Mathematical

Given an integer n, you need to find the largest integer m (m < n) such that m XOR n is a palindrome. If there… Read More
Given that 2 players are playing a die-throw game. The game is one player throws a die and he got a point, he can move… Read More
Given an integer array arr[] of size N. Let P is the product of all elements in the array. Return 1 if P is positive,… Read More
Given a positive integer X, the task is to find a permutation of length X such that all subarray sum of length greater than one… Read More
Given an integer N, find a sequence of N integers such that the sum of all integers in the sequence is equal to the sum… Read More
Given an array of positive integers arr[], the task is to find the maximum absolute difference between the pairs from the array such that the… Read More
Given a grid of size M x N and two integers X and Y. A restricted area is defined as the lower left sub-rectangle consisting… Read More
Given an array arr[] of N positive integers (> 0). The task is to check if it is possible to make all array elements equal… Read More
Given two integers n and k, and an equation 2x + ky = n (1 ≤ k ≤ n). The task is to check whether… Read More
Given an integer N. Consider an array arr having N elements where arr[i] = 2*i + 1. (The array is 0-indexed). Your task is to… Read More
Given a range of positive integers, find the Greatest Common Divisor (GCD) of the largest and smallest Armstrong numbers within that range. Examples: Input: Range… Read More
Given a number N, the task is to check whether the number is a Sublime number or not.  Sublime numbers are defined as positive numbers… Read More
Given the maximum occurrences of a, b, and c in a string, the task is to make the string containing only a, b, and c… Read More
Given an integer N, the task is to find a sequence of operations to convert 1 to N. You can perform any number of operations,… Read More
Given three positive integers Base B, Dividend, and Divisor, where Dividend and Divisor are Base-B integers, the task is to find dividend/divisor. Examples: Input: Dividend… Read More