numpy-100 icon indicating copy to clipboard operation
numpy-100 copied to clipboard

Alternative solution for Q15

Open cck181851 opened this issue 1 year ago • 2 comments

I think learning pad function may be helpful and it is more dynamic A=numpy.zeros([4,4]) print(numpy.pad(A,(1,1),"constant",constant_values=1))

cck181851 avatar Jul 13 '24 11:07 cck181851

I just realized that Q16 is very similar and uses pad.But anyway,I think using pad is more dynamic

cck181851 avatar Jul 13 '24 12:07 cck181851

Thanks. Can you make a PR and add your solution alognside the old one (like alternative way: ...) ? Make sure to modify the ktx files that are used to generate others.

rougier avatar Aug 28 '24 08:08 rougier