sweetestsmiles asks
16 years ago
what is the fastest way to sum up all the N/2 elements in an N by N array? Any language will do....
latest #11
tinker cat
16 years ago
uhh.. if I read it correctly, sum up all even numbers in an nxn array?
tinker cat
16 years ago
or do you mean elements with an even numbered subscript
Начик
16 years ago
maybe you meant N^2?
立即下載
sweetestsmiles
16 years ago
how to add up all the n/2 elements in the n by n array? =)
tinker cat
16 years ago
can only think up of a looping function, which will be a problem if n is very large
Начик
16 years ago
sorry but that does not compute. What is a n/2 element?
EvilTofu asks
16 years ago
if it's the first n/2 half or the last n/2 half?
sweetestsmiles says
16 years ago
all the n/2 elements in the array... :S
tinker cat
16 years ago
still wonders if you mean 2|n elements
Начик
16 years ago
maybe each element divided by 2??
Начик
16 years ago
"an n/2 element" doesn't compute :-( sorry
back to top