← All problemsSign in

The Garage Sale

The chef has a friend who is a mathematician. His friend is having a garage sale. The person being a mathematician, created an interesting scheme for the sale. The scheme as stated by chef’s friend is as follows: There are different types of items available for the sale. A person can buy a number of these items. From the items that will be purchased, the type of item which has the most frequency

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start