We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Thanks for your submission. I was wondering if the point of algorithms is to avoid using libraries if possible. Even tho it is a trivial example, shouldn't the sum of numbers be like
for(int i = 0; i < array.length; i++){
sum += array[i];
}
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
Thanks for your submission. I was wondering if the point of algorithms is to avoid using libraries if possible. Even tho it is a trivial example, shouldn't the sum of numbers be like
for(int i = 0; i < array.length; i++){ sum += array[i]; }
as opposed to "sum(array)"
Cheers