Potion Blending
CodeChefOpen on judge ↗
Problem description. Sabrina really likes to combine drinks and at the moment she has N combinations arranged in a row in front of her. Each combination has one of 100 different colors ( the number of the colors goes from 0 to 99 ). She wants to blend all the combinations together. In each step, she is going to take two combinations that are next to each other and blend them together. After blen
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