# Tag Archives: Numbers

In this article, we will learn how to convert a decimal value(base 10) to a hexadecimal value (base 16) in Python.  Method 1: Using hex()… Read More
Given two integers R1, R2 denoting runs scored by two players, and B1, B2 denoting balls faced by them respectively, the task is to find… Read More
Given a positive integer K, and an array arr[] consisting of N( =9) integers such that arr[i] represents the cost of the digit (i+1), the… Read More
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