MATRIX 2
CodeChefOpen on judge ↗
You will be given $2$ matrices $G$ and $H$ of size $m * n$.You have to create another matrix $A$ of same size with the following conditions: $1)$ For each cell in $A$ you have to choose one element from the given two matrices corresponding to the $same$ $position$. i.e $A[i][j] =$ either $G[i][j]$ or $H[i][j]$ $2)$ Number of elements taken from each matrices should be equal which means if si
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.
Sign in to chat with the tutor and save your progress.
Sign in to start