Open ishu9bansal opened 2 years ago
Is there a way to scan (and sum) a random shape (say diamond, circle, etc.) over a 2D grid, and produce a grid of new values, in linear time?
https://ideone.com/oH4Ft8
preliminary code, not tested
Is there a way to scan (and sum) a random shape (say diamond, circle, etc.) over a 2D grid, and produce a grid of new values, in linear time?