Problems
Previous question · 657
Partition Labels
medium
Algorithms
Next question · 659
Batch Retry Queue
medium
Data Engineering
Random coding question
NumPy
Language
NumPy
Practice
Interview
AI Tutor
Description
Solution
Discussion
658. Padding and stride effects
easy
General
senior
Function contract
Inputs
h
int
w
int
k_h
int
k_w
int
stride
int
padding
int
Returns
value
np.ndarray
Examples
Example 1
Input
{
"h"
:
5
,
"w"
:
5
,
"k_h"
:
3
,
"k_w"
:
3
,
"stride"
:
2
,
"padding"
:
1
}
Output
[
3
,
3
]
Example 2
Input Signature
Argument
Type
h
int
w
int
k_h
int
k_w
int
stride
int
padding
int
Output Signature
Return Name
Type
value
np.ndarray
Constraints
Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
General
Levels
senior
entry
Tags
convolution
output-shape
stride-padding
floor-division
Similar Questions
Linear Regression
medium
ML Coding
Activation function relu
easy
ML Coding
Text normalization
medium
ML Coding
42 people
are solving this problem
Run
Submit
00:00
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>