Sentient Butter Passing Robot
CodeChefOpen on judge ↗
To make the Sentient Butter Passing Robot feel better Rick and Morty decided to attach $N$ chips of different widths in it. They have chip holders of Width $L$ which can be used to fit these chips. To make the robot feel light they want to use minimum number of chip holders. Help them to find minimum number of chip holders to fit the chips or return $-1$ if not possible. ###Input: - Fir
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