Optimize
CodeChefOpen on judge ↗
Shrema loves dresses and she has a number of clothes kept in her different wardrobes. Today she has to go for a date with her boyfriend, so she is searching for a particular type of dress which is stored in one of her wardrobes. Each wardrobe is of varying capacity and the wardrobes are placed next to one another in a single line . For searching her favorite dress, Shrema has assigned N number
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