We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 11: 2D Arrays
Day 11: 2D Arrays
Sort by
recency
|
1936 Discussions
|
Please Login in order to post a comment
python 3
!/bin/python3
import math import os import random import re import sys
if name == 'main':
python 3
row= len(arr) p=row-2 n=[]
JS
It is worth noting that you can also solve this with convolutions, which could be helpful on huge arrays, since they can be solved with an fft in nlogn time.