Skip to content

Tag Archives: Numbers

Given two positive integers L and R, the task is to find the count of ordered pairs in the range [L, R] such that the… Read More
Given three positive integers, P, Q and N, the task is to find the GCD of (PN + QN) and (P – Q) under modulo… Read More
Given an infinite number line from the range [-INFINITY, +INFINITY] and an integer N, the task is to find the minimum count of moves required… Read More
Given an integer centimeter, representing a length measured in centimetre, the task is to convert it into its equivalent value measured in pixels. Examples: Input:… Read More
Given an integer N, the task is to find the decimal value of the binary string formed by concatenating the binary representations of all numbers… Read More
Given an array arr[] of size N, the task is to find the maximum sum non-empty subsequence present in the given array. Examples: Input: arr[]… Read More
Given an integer N. A number guessing game is a simple guessing game where a user is supposed to guess a number between 0 and… Read More
Given a string M consisting of letters, digits and symbols, the task is to convert the string to a valid mobile number by removing all… Read More
Given an integer N, the task is to find the path from the Nth node to the root of a Binary Tree of the following… Read More
Given two positive integers N and K, the task is to find the smallest number whose sum of digits is N and every distinct digit… Read More
Given two arrays L[] and R[] of sizes Q, the task is to find the number of composite magic numbers i.e numbers which are both… Read More
Given a positive integer N, the task is to find the smallest positive number made up of distinct digits having sum of its digits equal… Read More
Given two integers N and M, the task is to count all possible pair of integers (i, j) (1 ≤ i ≤ N, 1 ≤… Read More
Given a numeric string S of length N and a digit K, the task is to find the maximum number of distinct strings having a… Read More
Given an integer N, the task is to find the smallest positive integer, which when multiplied by N, has sum of digits equal to the… Read More