Maximum Sales
CodeChefOpen on judge ↗
Truevision is a big name in the market. They produce number of products. A salesman name Patrick from Truevision is out in the locality of Lakeview street, to sell the products of his company. Being provided that there are n number of houses on the street in the sequence from 1 to n and the number of residents in each house varies. Also the number of products a salesman sells in the house he visit
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