Implement 1D discrete convolution with full, same, and valid modes.
Constraints
Example
```python convolve_1d([1,2,3], [1,1]) # [1, 3, 5, 3] convolve_1d([1,2,3], [1,1], mode='same') # [3, 5, 3] convolve_1d([1,2,3], [1,1], mode='valid') # [3, 5] ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints