## Minimum, maximum and average price values for all the items of given type

Given a string array item[] and an integer array price[] where price[i] is the price of the item[i] when purchased from the ith shop. The… Read More »

## Count of triples (A, B, C) where A*C is greater than B*B

Given three integers A, B and C. The task is to count the number of triples (a, b, c) such that a * c >… Read More »

## Python | Count the array elements with factors less than or equal to the factors of given x

Given an array, the task is to count the elements of array whose factors are less than the given number x. Examples: Input: arr =… Read More »

## Number of hours after which the second person moves ahead of the first person if they travel at a given speed

Given three integers A, B and K. Initially, the first person was ahead of the second person by K kms. In every hour, the first… Read More »

## Properties of Determinants of Matrices

Determinant of a Matrix is a scalar property of that Matrix. Determinant is a special number that is defined for only square matrices (plural for… Read More »

## Find the permutation p from the array q such that q[i] = p[i+1] – p[i]

Given an array Q[] of length N, the task is to find the permutation P[] of integers from the range [1, N + 1] such… Read More »

## Generate two BSTs from the given array such that maximum height among them is minimum

Given an array of n integers, the task is to make two Binary Search Tree from the given array (in any order) such that the… Read More »

## Generate an array of size K which satisfies the given conditions

Given two integers N and K, the task is to generate an array arr[] of length K such that: arr + arr + … +… Read More »

## Check if it is possible to create a polygon with given n sides

Given an array arr[] that contain the lengths of n sides that may or may not form a polygon. The task is to determine whether… Read More »

## Area of largest Circle inscribe in N-sided Regular polygon

Given a regular polygon of N sides with side length a. The task is to find the area of the Circle which inscribed in the… Read More »

## Total position where king can reach on a chessboard in exactly M moves | Set 2

Given the position of the king on an 8 X 8 chessboard, the task is to count the total number of squares that can be… Read More »

## Given count of digits 1, 2, 3, 4, find the maximum sum possible

Given the count of digits 1, 2, 3, 4. Using these digits you are allowed to only form numbers 234 and 12. The task is… Read More »

## Total distinct pairs of ugly numbers from two arrays

Given two arrays arr1[] and arr2[] of sizes N and M where 0 ≤ arr1[i], arr2[i] ≤ 1000 for all valid i, the task is… Read More »

## Minimum number of given operation required to convert n to m

Given two integers n and m, in a single operation n can be multiplied by either 2 or 3. The task is to convert n… Read More »

## Find amount of water wasted after filling the tank

Given the volume V of a tank in liter. There is a pump which is filling the tank at speed of M liter per minute.… Read More »