Skip to content

Tag Archives: Numbers

Given a string str, the task is to convert the given string into the number without using any inbuilt function. Examples:  Input: str = “985632”… Read More
Given a number N, the task is to count the number of unique digits in the given number. Examples: Input: N = 22342 Output: 2 Explanation:The digits… Read More
Given an array arr[] of N positive integers, the task is to print the length of the longest subsequence of the array such that all… Read More
Given a number N and two integers A and B, the task is to check if it is possible to convert the number to 1… Read More
Given a number N, the task is to find the minimum value of N by applying below operations any number of times:  Multiply N by… Read More
Given an integer N in form of string str consisting of more than 100 digits, the task is to store the value for performing an… Read More
Given two postive integers L and R, the task is to print the numbers in the range [L, R] which have their digits in strictly… Read More
Given a number N, the task is to check whether the given number is Armstrong number or not. If the given number is Armstrong Number… Read More
Given two numbers N and K, the task is to find the minimum value X such that N < X*K.Examples:  Input: N = 8, K… Read More
Given an integer N, the task is to find all numbers up to N, which are both Pentagonal as well as Hexagonal. Example: Input: N… Read More
Given four integers a, b, c, and d which represents two complex numbers of the form (a + bi) and (c + di), the task… Read More
Binary Coded Decimal, or BCD, is another process for converting decimal numbers into their binary equivalents. It is a form of binary encoding where each… Read More
The Pentanacci series is a generalization of the Fibonacci sequence where each term is the sum of the five preceding terms. The first few Pentanacci… Read More
Given an array arr[] and an integer S, the task is to choose the maximum count of numbers from the array such that the sum… Read More
Given a natural number N, the task is to find the Nth compositorial number.  Compositorial of a number refers to the product of all the… Read More