← All problemsSign in

Binod and Matrix

Binod loves matrices. He calls a matrix GOOD if 1. All elements of the matrix are [non-negative](https://en.wiktionary.org/wiki/non-negative#:~:text=non%2Dnegative%20(not%20comparable),Distances%20are%20non%2Dnegative.). 2. The matrix is a symmetric matrix. Binod got a square matrix of size $N * N$ as a gift from her girlfriend Binod. Now he wants to make this matrix GOOD. Binod can perform

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