Skip to content

Tag Archives: Numbers

Given a positive integer N, the task is to find the count of integers from the range [1, N] such that the integer cannot be… Read More
Given a positive even integer N, the task is to find the number of pairs (i, j) from the range [1, N] such that the… Read More
Given a positive integer N, the task is to find the number of triplets of positive integers (X, Y, Z), whose product is at most… Read More
Given an array arr and number n and the task is to write a function that returns an array whose items are larger than n.… Read More
Given a positive integer N, the task is to find the nearest Fibonacci number to the given integer N. If there are two Fibonacci Numbers… Read More
Given two Complex Numbers Z1 and Z2 in the Cartesian form, the task is to convert the given complex number into polar form and perform… Read More
In mathematics, a real number is a value of a continuous quantity that can represent a distance along a line. Real numbers include both rational… Read More
Given two positive integers N and K, the task is to check if the given integer N can be expressed as the product of K… Read More
Given an integer N and a Mersenne number M, the task is to print their product without using the ‘*’ operator.Note: Mersenne numbers are those… Read More
Given an array arr[] consisting of N natural numbers, the task is to find the length of the longest subsequence from the array which does… Read More
Given an array arr[] consisting of N positive integers, the task is to count the number of subarrays consisting only of pronic numbers. Examples: Input:… Read More
Given an array arr[] consisting of N integers, the task is to find the sum of all subsets from an array, whose sum is a… Read More
Given an array arr[] of size N, the task is to print all the perfect numbers from an array whose sum of digits is also… Read More
Given a positive integer L, the task is to find all the Ramanujan Numbers that can be generated by any set of quadruples (a, b,… Read More
Given two integers A and C, the task is to check if there exists a permutation of the number A such that the sum of… Read More