##
Count total number of digits from 1 to n
July 6, 2017

Given a number n, count the total number of digits required to write all numbers from 1 to n. Examples: Input : 13 Output :… Read More »

July 6, 2017

Given a number n, count the total number of digits required to write all numbers from 1 to n. Examples: Input : 13 Output :… Read More »

Given a number N, print all numbers in range from 1 to N having exactly 3 divisors. Input : N = 16 Output : 4… Read More »

Given a decimal number as input, we need to write a program to convert the given decimal number into equivalent hexadecimal number. i.e convert the… Read More »

Given a string consisting of integers 0 to 9.The task is to count the number of substrings which when convert into integer are divisible by… Read More »

July 5, 2017

Given n number of floating values x, and their corresponding functional values f(x), estimate the value of the mathematical function for any intermediate value of… Read More »

We are aware of calculating factorials using loops or recursion, but if we are asked to calculate factorial without using any loop or recursion. Yes,… Read More »

July 4, 2017

Given the co-ordinates of a 2-dimensional point p(x0, y0). Find the points at a distance L away from it, such that the line formed by… Read More »

Given a positive number n (n > 1), round-off this number to a given no. of significant digits, d. Examples: Input : n = 139.59… Read More »

July 3, 2017

Given a really large number, break it into 3 whole numbers such that they sum up to the original number and count number of ways… Read More »

Lychrel Number is a natural number that cannot form a palindrome through the iterative process of repeatedly reversing its digits and adding the resulting numbers.… Read More »

July 2, 2017

Questions based on various concepts of number theory and different types of number are quite frequently asked in programming contests. In this article, we discuss… Read More »

July 1, 2017

Given two numbers, perform multiplication, subtraction and division operations on them, using ‘+’ arithmetic operator only. Recommended: Please try your approach on {IDE} first, before… Read More »

We have already discussed the rotation of a point P about the origin in the Set 1 and Set 2. The rotation of point P… Read More »

Let’s first consider a general case where the line is nothing but the X-Axis. We can now definitely say that the conjugate of a point… Read More »

A and B are two numbers which define a range, where A <= B. Find the total numbers in the given range [A … B]… Read More »