← All problemsSign in

Love and code

Dom and Brain are best of friends. Brain loves Dom's sister Mia. Brain tells Dom about his relationship with Mia. Dom said to Brain that if you solve this easy question then I'll allow you both to marry. The question is simple. You are given a 3x3 matrix 'A'. Your task is to calculate the following sum: Sum_Matrix = A + A^2 + A^3 + A^4 + ...... + A^k(where, '^' operator denotes power not XOR) w

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