← All problemsSign in

Mortys Matricks

After Morty solving the previous problem rick was quite surprised because Morty has no coding experience and he solved it. Now he gave Morty a not so easy problem to test him even more. He gave him $N$ Integers $S_1, S_2...S_n$ and told him to construct a $N*N$ matrix where $A_{i,j}=S_i \oplus S_j $ where $\oplus$ indicates bitwise XOR operator. After Construction of the matrix Rick gave him $Q

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