## Largest Ratio Contiguous subarray

Given an array arr[] of N numbers, the task is to find the largest ratio of contiguous subarray from the given array. Examples: Input: arr… Read More »

Given an array arr[] of N numbers, the task is to find the largest ratio of contiguous subarray from the given array. Examples: Input: arr… Read More »

Given an array arr[] of positive integers, the task is to find the ratio of LCM and GCD of the given array. Examples: Input: arr[]… Read More »

Given four integers a, b, c and d. The task is to check whether it is possible to pair them up such that they are… Read More »

Given a ratio a : b of two unknown numbers. When both the numbers are incremented by a given integer x, the ratio becomes c… Read More »

Given two rectangles, X with a ratio of length to width a:b and Y with a ratio of length to width c:d respectively. Both the… Read More »

Write a program to find the ratio in which a shopkeeper will mix two types of rice worth Rs. kg and Rs. kg, so that… Read More »

Given a:b and b:c. The task is to write a program to find ratio a:b:c Examples: Input: a:b = 2:3, b:c = 3:4 Output: 2:3:4… Read More »

Felix and Adam win Rs 1210 together. 4/15 of Felix’s share is same as 2/5 of Adam’s share. How much did Adam win? (A) Rs… Read More »

Syrup and Water are mixed in 2:1 ratio to form 60 litres of a mixture. How much water needs to be added to make the… Read More »

If (x:y) = 2:1, then (x²-y²):(x²+y²) = __ ? (A) 1:2 (B) 3:5 (C) 2:1 (D) 5:4 Answer: (B) Explanation: Given, x:y = 2:1 ⇒… Read More »

A certain amount of money is distributed between Alfred, Adam, Harry and Leo in the proportion of 5:2:4:3. Harry’s share is Rs 1000 more than… Read More »

If the ages of Jacob, Max and Samuel are in the proportion 3:5:7 and the average of their ages is 25 years, then find the… Read More »

The ratio 5:3 represents 16 liters of a mixture containing milk and water. If 4 liters of water is added and 4 liters of milk… Read More »

In a library, the ratio of the books on Computer, Physics and Mathematics is 5:7:8. If the collection of books is increased respectively by 40%,… Read More »

Mark, Steve and Bill get their salaries in the ratio of 2:3:5. If their salaries are incremented by 15%, 10%, and 20% respectively, the new… Read More »