## Check if the number is valid when flipped upside down

Given a string str representing a number, the task is to find whether the number is valid or not if it made topsy-turvy i.e upside-down.… Read More »

- Sum of digits with even number of 1's in their binary representation
- Reduce number to a single digit by subtracting adjacent digits repeatedly
- Equal Sum and XOR of three Numbers
- Append a digit in the end to make the number equal to the length of the remaining string
- Count total set bits in all numbers from 1 to n | Set 2
- Minimum sum of two numbers formed from digits of an array in O(n)
- Count of integers in a range which have even number of odd digits and odd number of even digits
- Check whether a number can be represented as sum of K distinct positive integers
- Find the minimum number of steps to reach M from N
- Menu Driven Program to convert MKS to CGS and CGS to MKS
- Recursive program to find all Indices of a Number
- Generate all unique partitions of an integer | Set 2
- Smallest N digit number which is a multiple of 5
- Divide a number into two parts
- Probability of getting more heads than tails when N biased coins are tossed
- Length of the smallest number which is divisible by K and formed by using 1's only
- Sort ugly numbers in an array at their relative positions
- Find permutation of first N natural numbers that satisfies the given condition
- Minimize the cost to split a number
- Find n positive integers that satisfy the given equations
- Count numbers in given range such that sum of even digits is greater than sum of odd digits
- Smallest multiple of N formed using the given set of digits
- Count the number of operations required to reduce the given number
- Find maximum product of digits among numbers less than or equal to N
- Find sum of inverse of the divisors when sum of divisors and the number is given
- Find two integers A and B such that A ^ N = A + N and B ^ N = B + N
- Find the number of jumps to reach X in the number line from zero
- Minimum number operations required to convert n to m | Set-2
- Print all Semi-Prime Numbers less than or equal to N
- Find the sum of numbers from 1 to n excluding those which are powers of K

Given a string str representing a number, the task is to find whether the number is valid or not if it made topsy-turvy i.e upside-down.… Read More »

Given an integer N, the task is to generate an array of size N with the following properties: No two elements divide each other. Every… Read More »

Given an integer N, the task is to find the probability that a number with a number of digits as N is a palindrome. The… Read More »

Given an integer N, the task is to find the Nth Fibonacci number. Input: N = 13 Output: 144 Input: N = 19 Output: 2584… Read More »

Given an integer N, the task is to print the first N terms whose sum of digits is a multiple of 10. First few terms… Read More »

Given a range [L, R], the task is to count the numbers which have even number of odd digits and odd number of even digits.… Read More »

Given a number N, the task is to reduce it to a single-digit number by repeatedly subtracting the adjacent digits. That is, in the first… Read More »

Given two integers A and B, the task is to count the number of bits needed to be flipped to convert A to B. Examples:… Read More »

Given a and b which represents the location of two factors of N whose product is equal to the number N when the factors are… Read More »

Given N‘, the number of non-parallel lines. The task is to find the maximum number of regions in which these lines can divide a plane.… Read More »

Given three integers N, K and L. The task is to find the average of the first K digits and the last L digits of… Read More »

Given an array arr[] of size N. The task is to find the sum of the digits of all array elements which contains even number… Read More »

Given a ratio a : b of two unknown numbers. When both the numbers are incremented by a given integer x, the ratio becomes c… Read More »

Given an integer N. The task is to count the numbers of pairs of integers A and B such that A + B + N… Read More »

Given an array arr[] of size N( > 2). The task is to find the maximum sum of digits of the product of any two… Read More »