← All problemsSign in

SIMPLE MODIFICATION

One day Debu, master of 2-dimensional data structures thought of challenging Himans, master of Trees and gave him a problem which is as follows: This question is the easiest to understand, but no guarantee about the solution. Given a $n$ x $m$ 2d matrix, you have to perform u modifications of the form k,r1,c1,r2,c2. In each modification, you have to add k to all the cells in the block rep

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