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.
Indeed, but I've found in certain challenges the zero needs to be there or the reduce doesn't work properly. I haven't quite wrapped my head around what causes that so I've probably developed a habit of putting it in every time just to be explicit.
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 →
Indeed, but I've found in certain challenges the zero needs to be there or the reduce doesn't work properly. I haven't quite wrapped my head around what causes that so I've probably developed a habit of putting it in every time just to be explicit.