## Smallest Special Prime which is greater than or equal to a given number

Given a number N. The task is to find the smallest special prime which is greater than or equal to N. A special prime is… Read More »

- Make all numbers of an array equal
- Reach the numbers by making jumps of two given lengths
- Largest palindromic number in an array
- Check if a number is perfect square without finding square root
- Sum of XOR of all subarrays
- Sum of the first N Prime numbers
- Minimum operations required to make all the array elements equal
- Sum of minimum elements of all subarrays
- Find the unit place digit of sum of N factorials
- A Sum Array Puzzle
- Check if it is possible to reach a number by making jumps of two given length
- Puzzle | Neighbors in a round table
- Generate all rotations of a number
- Find the number in a range having maximum product of the digits
- Find K Closest Points to the Origin
- Count of pairs (x, y) in an array such that x < y
- Number of array elements derivable from D after performing certain operations
- Minimum number of sets with numbers less than Y
- Immediate smallest number after re-arranging the digits of a given number
- Check if a number is a Mystery Number
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Program to Convert Hexadecimal Number to Binary
- Find the Nth term of the series 14, 28, 20, 40,.....
- Minimum Increment / decrement to make array elements equal
- Sum of the multiples of two numbers below N
- Graph Types and Applications
- Find elements of array using XOR of consecutive elements
- Midpoint ellipse drawing algorithm
- Remove characters from a numeric string such that string becomes divisible by 8
- Distribute N candies among K people

Given a number N. The task is to find the smallest special prime which is greater than or equal to N. A special prime is… Read More »

Given two integers N and K, the task is to find a permutation of integers from the range [1, N] such that the number of… Read More »

Given a number N(1 ≤ N ≤ 1018) without leading zeros. The task is to find the minimum number of moves required to make N… Read More »

Given a number N. The task is to count the number of prime numbers from 2 to N that can be expressed as a sum… Read More »

Given three positive integers A, B and C. The task is to find the maximum integer X > 0 such that: X % C =… Read More »

Given an array consisting of N positive integers, find the sum of bit-wise and of all possible sub-arrays of the array. Examples: Input : arr[]… Read More »

Given an array containing N positive integers, the task is to find the sum of XOR of all sub-arrays of the array. Examples: Input :… Read More »

Given two integers N and K, the task is to find a permutation of first 2*N natural numbers such that the following equation is satisfied.… Read More »

Given a number N, the task is to find a positive number M such that gcd(N^M, N&M) is the maximum possible and M < N.… Read More »

Given the source point and the destination point of the path and two integers x and y. The task is to check whether it is… Read More »

Given an array consisting of even number of elements, the task is to divide the array into M group of elements (every group must contain… Read More »

Given an array arr[], the task is to find the maximum length of a subsequence such that the adjacent elements in the subsequence have a… Read More »

Given an array of N distinct integers, the task is to find the number of pairs (x, y) such that x < y. Example: Input:… Read More »

Given the values of m and c for the equation of a line y = (m * x) + c, the task is to find… Read More »

Given a number n, the task is to print all the numbers less than or equal to n which are perfect cubes as well as… Read More »