G - Maxpool
Robert is a maths teacher and he made a question for his students. Question is a matrix of $N$ X $N$ with all distinct elements from $1$ to $N*N$. One has to apply **maxpool** function of filter matrix $2$ X $2$ to get the answer, that is for each $2$ X $2$ matrix you have to write the maximum element in corresponding matrix of size $(N-1)$ X $(N-1)$. for example if $N$ = $3$ and matrix given is
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