← All problemsSign in

Convolution Grid

Kanishk was given 2 matrices of sizes (rows x columns) $n$ x $m$ and $a$ x $b$ respectively. He was required to perform a convolution (don't get scared)! Basically, given the 2 matrices along with a stride $s$ and padding variable $p$, you are required to help Kanishk find out **only** the size of the output matrix. Here is the procedure to perform convolution: 1. In the first step, you have

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