← All problemsSign in

Obsessive Compulsive Multiplication

Harry has just learned Vedic mathematics and is now able to multiply numbers very quickly. But this has got to his head now, and he starts multiplying any two numbers he sees. All his friends are pretty annoyed by this. They decided to feed him with arrays, but not just any arrays. Only such arrays, that if harry starts multiplying any two numbers (a number will not be multiplied by itself, thoug

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