← All problemsSign in

QUERIES ON MATRIX

$Shreyas$ and $Anupam$ both loves to solve coding problems that are based on matrix. One day $Hritik$ gave a $two -Dimentional$ $N*M$ matrix to them, and asked them to answer $Q$ Queries , Both $Shreyas$ and $Anupam$ were able to solve that problem.Can you? There are two types of Queries in the problem:- $1.)$ $1$ $r$ $c$ $val$ : To change the value at $(r,c)$ to val. $2.)$ $2$

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