## Loss when two items are sold at same price and same percentage profit/loss

Given the Selling price i.e ‘SP’ of the two items each. One item is sold at ‘P%’ Profit and other at ‘P%’ Loss. The task… Read More »

- Program to find the Hidden Number
- 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
- Find the unit place digit of sum of N factorials
- Check if a number can be expressed as a^b | Set 2
- Puzzle | Cut Blue Painted Cube
- Sum of the first N Prime numbers
- Minimum operations required to make all the array elements equal
- Sum of minimum elements of all subarrays
- Sum of XOR of all subarrays
- A Sum Array Puzzle
- Generate all rotations of a number
- Check if it is possible to reach a number by making jumps of two given length
- Puzzle | Neighbors in a round table
- Number of array elements derivable from D after performing certain operations
- Program to find minimum number of lectures to attend to maintain 75%
- Find K Closest Points to the Origin
- Minimum number of sets with numbers less than Y
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Check if a number is a Mystery Number
- Sum of the multiples of two numbers below N
- Sum of all Primes in a given range using Sieve of Eratosthenes
- Count of pairs (x, y) in an array such that x < y
- Immediate smallest number after re-arranging the digits of a given number
- Find the Nth term of the series 14, 28, 20, 40,.....
- Find elements of array using XOR of consecutive elements
- Remove characters from a numeric string such that string becomes divisible by 8
- Graph Types and Applications

Given the Selling price i.e ‘SP’ of the two items each. One item is sold at ‘P%’ Profit and other at ‘P%’ Loss. The task… Read More »

Given three non-zero integers a, b and c. The task is to find the maximum value possible by putting addition and multiplication signs between them… Read More »

Given an array arr[] of N elements and an integer K where K < N. The task is to insert K integer elements to the… Read More »

Given an integer N. The following tasks are performed: The number is noted. The leading digit from N is subtracted from N and the resulting… Read More »

Given two integers A and B, the task is to calculate 22A % B. Examples: Input: A = 3, B = 5 Output: 1 223… Read More »

Given an array arr[] of size N and an integer K, the task is to find the smallest index in the array such that: floor(arr[i]… Read More »

Given an array arr[] and an integer K. The task is to sort the elements that are in between any two multiples of K. Examples:… Read More »

Given three integers X, N and M. The task is to find XXX…(N times) % M where X can be any digitfrom the range [1,… Read More »

Given an integer Y, find the smallest number X such that X! contains at least Y trailing zeros. Prerequisites – Count trailing zeroes in factorial… Read More »

Given a number N. Find the number of ways to divide a number into four parts(a, b, c, d) such that a = c and… Read More »

Given a string str which represents the ASCII Sentence, the task is to convert this string into its equivalent character sequence. Examples: Input: str =… Read More »

Given a range of positive integers from l to r. Find such a pair of integers (x, y) that l <= x, y <= r,… Read More »

Given an integer K and an array arr[], the task is to count all the sub-arrays whose product is divisible by K. Examples: Input: arr[]… Read More »

Given an array arr[] of n positive integers. The task is to find elements arr[i] and arr[j] from the array such that arr[i]Carr[j] is maximum… Read More »

Given an array arr[] of N integers and an integer K, the task is to find whether the given array elements can be made 0… Read More »