← All problemsSign in

Horoscope Matrix

Bhavyesh is a love guru. He helps people out by telling them whether their current partner is their true soulmate based on their partner's Horoscope Matrix. Bhavyesh is busy with his own partner today, so he has asked you to fill in for him. A Horoscope Matrix is said to be *good* if each of its diagonals directed from the top left to the bottom right contains only equal elements, i.e. the same

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