Skip to content

Tag Archives: Numbers

Given an array arr[] of size N containing strings, the task is to count the number of strings having sum of ASCII values of characters… Read More
Given two positive integers A and B representing the complex number Z in the form of Z = A + i * B, the task… Read More
Given a positive integer N and a digit D, the task is to check if N can be represented as a sum of positive integers… Read More
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