← All problemsSign in

Crazy Boy

Crazy Boy had a tough Math exam in school today. On returning home, he realizes that he made a crucial error in the paper. In all the problems which involved calculating the determinant of a matrix, he forgot to multiply the minors with the sign term (-1)^(i + j), which resulted in wrong cofactors, and thus the wrong determinant. On further thought, he finds this slight error quite interesting and

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