Given an integer D, the task is to find the count of all possible positive integers N such that reverse(N) = N + D. Examples:… Read More

# Tag Archives: Numbers

Given an integer N, the task is to count the number of ways to represent N as the sum of powers of 2. Examples: Input:… Read More

Given an integer pixel representing the width of a box in pixels, the task is to convert pixel into their equivalent value measured in rem… Read More

Given a positive integer N, the task is to find the permutation of first N natural numbers such that the product of Bitwise AND(&) of… Read More

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