You are viewing a single comment's thread. Return to all comments →
this summation with an if inside is surely slower than just adding up everything and subtracting k like this: sum(ar) - ar[k]
Seems like cookies are disabled on this browser, please enable them to open this website
Bill Division
You are viewing a single comment's thread. Return to all comments →
this summation with an if inside is surely slower than just adding up everything and subtracting k like this: sum(ar) - ar[k]