Greatest Difference
CodeChefOpen on judge ↗
Chef and Priyank are close friends. The chef is looking for ingredients to make his best cuisine, priyank is helping Chef in search for the ingredients. Priyank is preparing the list having the prices of the ingredients(Note: There can be two prices for the same ingredient). But priyank lost the track record. So, now he want you to find the **two possible lists** having the **maximum difference i
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start