← All problemsSign in

Bonds

Mr White is in the quest to make the purest Methamphetamine (meth). He has a arrangement of the required atoms on his microscope's slide. The slide is a 2D plane having a configuration of $2n+1$ different atoms on it. The purity of the sample increases with more number of bond-pairs. A pair of atoms can make a bond-pair if they satisfy either of the following conditions: * $x$-coordinate of the

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