## Maximum possible elements which are divisible by 2

Given an integer array arr of size N. The task is to find the maximum possible elements in the array which are divisible by 2… Read More »

- Minimum sum of two numbers formed from digits of an array in O(n)
- How to concatenate two Integer values into one?
- Check whether a number can be represented as sum of K distinct positive integers
- Smallest N digit number which is a multiple of 5
- Length of the smallest number which is divisible by K and formed by using 1's only
- Find the minimum number of steps to reach M from N
- Generate all unique partitions of an integer | Set 2
- Minimize the cost to split a number
- Divide a number into two parts
- Find n positive integers that satisfy the given equations
- Find permutation of first N natural numbers that satisfies the given condition
- Count the number of operations required to reduce the given number
- Find sum of inverse of the divisors when sum of divisors and the number is given
- Find the sum of numbers from 1 to n excluding those which are powers of K
- Smallest multiple of N formed using the given set of digits
- Check whether product of integers from a to b is positive , negative or zero
- Find average of two numbers using bit operation
- Find the number of good permutations
- Print all Semi-Prime Numbers less than or equal to N
- Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
- Minimum number operations required to convert n to m | Set-2
- Sum of two numbers where one number is represented as array of digits
- Find maximum product of digits among numbers less than or equal to N
- Count numbers in given range such that sum of even digits is greater than sum of odd digits
- Sort ugly numbers in an array at their relative positions
- Find the number of jumps to reach X in the number line from zero
- Number of pairs from the first N natural numbers whose sum is divisible by K
- Check whether factorial of N is divisible by sum of first N natural numbers
- Total distinct pairs of ugly numbers from two arrays
- Probability of getting more heads than tails when N biased coins are tossed

Given an integer array arr of size N. The task is to find the maximum possible elements in the array which are divisible by 2… Read More »

Given four integers X, Y, P and Q such that X ≤ Y and gcd(P, Q) = 1. The task is to find minimum operation… Read More »

Given a number N and a base number A. The task is to check whether the number is a Fermat Pseudoprime to the base. The… Read More »

Given a number N. The task is to find the largest and the smallest digit of the number. Examples : Input : N = 2346… Read More »

Given an integer N( 2 <= N <= 10^9 ), split the number into one or more parts(possibly none), where each part must be greater… Read More »

Given a positive integer N, the task is to count the sum of the number of set bits in the binary representation of all the… Read More »

Given two integers X and Y. X and Y represent any two values among (A + B), (A + C) and (B + C). The… Read More »

Prerequisite: Switch Case in C/C++ Problem Statement: Write a menu-driven program using the Switch case to convert the CGS system to MKS system and vice… Read More »

Given two integer N and R, the task is to calculate the number of ways to distribute N identical objects into R distinct groups such… Read More »

Given two integers N and R, the task is to calculate the number of ways to distribute N identical objects into R distinct groups. Examples:… Read More »

Given an integer N and the sum of its divisors. The task is to find the sum of the inverse of the divisors of N.… Read More »

Given two integers L and R denoting a range [L, R]. The task is to find the total count of numbers in the given range… Read More »

Given two integers N and K. Find the numbers of triplets (a, b, c) such that 0 ≤ a, b, c ≤ N and (a… Read More »

Given an array p[] of odd length N where p[i] denotes the probability of getting a head on the ith coin. As the coins are… Read More »

Given two integers A and B. The task is to check whether it is possible to convert A into B by performing below operations any… Read More »