# Category Archives: Mathematical

Given three non-negative integers A, B, and N where A is non-zero, the task is to find the number of integers less than or equal… Read More
Given an integer N, the task is to find the number of steps required to reduce the given number N to 1 by performing the… Read More
Given a matrix mat[][] of dimensions N * M and a set of coordinates of cell coordinates[][] of size Q, the task is to find… Read More
Given an integer N, repeatedly choose two distinct integers from the range 2 to N and if their GCD is found to be greater than… Read More
Given an array A[] and a positive integer X. The task is to find the absolute difference between the floor of total sum divided by… Read More
Given an array arr[] consisting of N positive integers and an integer K, the task is to find the highest frequency of any array element… Read More
Given an array arr[] consisting of N positive integers, the task is to find the elements which are greater than at least half of the… Read More
Given an array arr[] consisting of (N – 1), the task is to construct a permutation array P[] consisting of the first N Natural Numbers… Read More
Given a positive integer N, the task is to maximize the integer N by rearranging the digits and check if the sum of the left… Read More
Given two positive integers X and Y, the task is to check if it is possible to convert the number X into Y, either by… Read More
Given a positive integer N, the task is to count all numbers which are less than N and Bitwise AND of all such numbers with… Read More
Given an array arr[] consisting of N integers, the task is to find the maximum sum of any subsequence from the array having Bitwise AND… Read More
Given an array arr[] consisting of N positive integers and an integer K, the task is to check if it is possible to reduce the… Read More
Given two integers S and D, the task is to check if the integer S can be made divisible by D or not by repeatedly… Read More
Given a Binary Tree consisting of N nodes, the task is to find the length of the longest path from any node to the bottom… Read More