## Remove characters from a numeric string such that string becomes divisible by 8

Given a non-negative integer represented in the form of a numeric string str. Remove zero or more characters from the string such that the number… Read More »

- Eggs dropping puzzle (Binomial Coefficient and Binary Search Solution)
- Program to find the Hidden Number
- Egg Dropping Puzzle with 2 Eggs and K Floors
- Maximum profit after buying and selling the stocks
- Longest subarray having average greater than or equal to x
- Reach the numbers by making jumps of two given lengths
- Modular exponentiation (Recursive)
- Puzzle | Cut Blue Painted Cube
- Minimum steps needed to cover a sequence of points on an infinite grid
- Find the unit place digit of sum of N factorials
- Puzzle | Selling Chocolates
- Largest palindromic number in an array
- A Sum Array Puzzle
- Check if a number can be expressed as a^b | Set 2
- Merge Sort with O(1) extra space merge and O(n lg n) time
- Check if a number is perfect square without finding square root
- Final cell position in the matrix
- Probability that two persons will meet
- Number of quadrilaterals possible from the given points
- Program to find minimum number of lectures to attend to maintain 75%
- Sum of the multiples of two numbers below N
- Check if any permutation of a large number is divisible by 8
- Check if a number is a Mystery Number
- Number of array elements derivable from D after performing certain operations
- Sum of the first N Prime numbers
- Larger of a^b or b^a (a raised to power b or b raised to power a)
- Find elements of array using XOR of consecutive elements
- Probability of cutting a rope into three pieces such that the sides form a triangle
- Generating numbers that are divisor of their right-rotations
- Count number of triplets with product equal to given number with duplicates allowed

Given a non-negative integer represented in the form of a numeric string str. Remove zero or more characters from the string such that the number… Read More »

What is Extrapolation? Extrapolation is the process in mathematics where the required value is estimated beyond the range the of the given variable range. Extrapolation… Read More »

Given a starting position ‘k’ and two jump sizes ‘d1’ and ‘d2’, our task is to find the minimum number of jumps needed to reach… Read More »

Given initial values of two positive integers X and Y, Find the final value of X and Y according to below alterations: 1. If X=0… Read More »

Given an integer N where . The task is to check whether the number is not divisible by any of its digit. If the given… Read More »

Given an integer N, the task is to print all the multiplicative primes ≤ N. Multiplicative Primes are the primes such that the product of… Read More »

Given here is a semicircle of radius r which inscribes a square which in turn inscribes a reuleaux triangle. The task is to find the… Read More »

Given here is an equilateral triangle of sidelength a which inscribes a square which in turn inscribes a reuleaux triangle. The task is to find… Read More »

Given a number N, the task is to find the largest positive integer less than or equal to N/2 which is coprime to N. Note:… Read More »

Given an ellipse, with major and minor axis length 2a & 2b respectively. The task is to find the area of the largest circle that… Read More »

Given an array arr[] and the task is to print the additive primes in an array. Additive primes: Primes such that the sum of their… Read More »

Given a list of points on the 2-D plane and an integer K. The task is to find K closest points to the origin and… Read More »

A square is a flat shape, in one plane, defined by four points at the four corners. A square has four sides all of equal… Read More »

Given numbers in form of an Inverted triangle. By starting at the bottom of the triangle and moving to adjacent numbers on the row above,… Read More »

Given two line segments AB and CD having A(x1, y1), B(x2, y2), C(x3, y3) and D(x4, y4). The task is to check whether these two… Read More »