## Find the position of the last removed element from the array

Given an array of size and an integer . Perform the following operations on the given array: If a[i] > M then push a[i] –… Read More »

- Make all numbers of an array equal
- Number of array elements derivable from D after performing certain operations
- Program to Convert Hexadecimal Number to Binary
- ElGamal Encryption Algorithm
- Find numbers a and b that satisfy the given conditions
- Count numbers upto N which are both perfect square and perfect cube
- Sum of common divisors of two numbers A and B
- Count Odd and Even numbers in a range from L to R
- Program to find first N Iccanobif Numbers
- Check whether a number is Non-hypotenuse number
- Closest sum partition (into two subsets) of numbers from 1 to n
- Most frequent factor in a range of integers
- Prime Factor
- Minimum multiplications with {2, 3, 7} to make two numbers equal
- Program to solve the Alligation Problem
- Check if a number is Primorial Prime or not
- Check if a number has digits in the given Order
- Check if difference of areas of two squares is prime
- Natural Numbers
- Program to find count of numbers having odd number of divisors in given range
- Count Numbers with N digits which consists of even number of 0’s
- Find two numbers whose sum and GCD are given
- Check if N is Strong Prime
- Smallest number greater than or equal to N divisible by K
- Sum of first N natural numbers which are divisible by X or Y
- Count of Numbers such that difference between the number and sum of its digits not less than L
- Find the k-th smallest divisor of a natural number N
- Program to check whether a number is Proth number or not
- Value of the series (1^3 + 2^3 + 3^3 + ... + n^3) mod 4 for a given n
- Find maximum operations to reduce N to 1

Given an array of size and an integer . Perform the following operations on the given array: If a[i] > M then push a[i] –… Read More »

Given sum and gcd of two numbers and . The task is to find both the numbers a and b. If the numbers do not… Read More »

Given a number . Reduce this number to zero by subtracting the number by it’s most significant digit(Left most digit) at every step. The task… Read More »

Given a number N and a number K, the task is to find the smallest number greater than or equal to N which is divisible… Read More »

Given an integer N, below operations can be performed any number of times on N: Multiply N by any positive integer X i.e. N =… Read More »

Given an Integer N. The task is count numbers P less than N such that P is a product of two distinct perfect squares. Examples:… Read More »

Given an integer N. The task is to count the number of ordered pairs (a, b) such that . Examples: Input: N = 5 Output:… Read More »

Greatest Integer Function [X] indicates an integral part of the real number which is nearest and smaller integer to . It is also known as… Read More »

Given an integer ‘n’, the task is to check whether the sum of digits at the odd positions (from right to left) is prime or… Read More »

ElGamal encryption is an public-key cryptosystem. It uses asymmetric key encryption for communicating between two parties and encrypting the message. This cryptosystem is based on… Read More »

Given a positive integer N. The task is to check if N is an Achilles number or not. Print ‘YES’ if N is an Achilles… Read More »

Given two integers A and B. The task is to count how many numbers in the interval [ A, B ] have an odd number… Read More »

Given a positive integer N. The task is to check if N is an unusual number or not. Print ‘YES’ if M is an unusual… Read More »

Given two squares with side lengths and (a > b). The task is to check if difference of their areas is prime or not. Here… Read More »

Given a Hexadecimal number as an input, the task is to convert that number to Binary number. Examples: Input: Hexadecimal = 1AC5 Output: Binary =… Read More »