Coforge, Recently Asked Online Assessments in 31 Dec, 2026 | Fruit Weight Combinations | Mettl Coding Assessment

Question · Posted Mar 2026

Question 1: Fruit Weight Combinations Problem Statement: Travis owns a fruit shop that keeps apples of different weights. He maintains a record of the weights of the apples, and to make his work easier he only sells the apples with Minimum weight A and the Maximum weight B in the store. A customer asks for apples weighing W kgs and Travis can either provide apples with the minimum weight which will be the maximum number of apples, or can provide ...

The full answer & interview discussion are available to premium members.

Log in Create a free account