Product Arrangement
CodeChefOpen on judge ↗
You are manager of Noida Shopping Complex, and as the manager you are given a task to arrange products on single rack. There are products of three companies Apple, Dell and HP. Apple is the star product and its position is fixed. You have to arrange products of Dell and HP on a rack in such a way that there should not be two products of same company together. But there is no problem with the sta
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