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.
Here is a nice version of comments, accumulate() takes a initial sum value for its third parameter as if you would start a function with "long sum = 0". LL at the end of 0 is a suffix standing for "long long".
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
A Very Big Sum
You are viewing a single comment's thread. Return to all comments →
Here is a nice version of comments, accumulate() takes a initial sum value for its third parameter as if you would start a function with "long sum = 0". LL at the end of 0 is a suffix standing for "long long".