I’ve done an exercise, during my exercise I used array.array(‘i’,[0] * N) and [0] * N, the second one was an MLE error whereas the first one passed. I searched on Google and found that array.array is optimized memory than [0] * N. So can anyone explain in detail about this problem, how does array.array work and unusual array work please,…
I try arr=[0]*N but it was an MLE error, but arr=array.array(‘i’,[0] * N) was not
New contributor
Nông Đức Thịnh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.