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.
thank you so much! i was stuck trying to understand what was wrong with my c# solution running in case 4.
long n is the return value, so i needed to cast long in the expression as
n += ((long)i+1)*((long)k+1);
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Triple sum
You are viewing a single comment's thread. Return to all comments →
thank you so much! i was stuck trying to understand what was wrong with my c# solution running in case 4. long n is the return value, so i needed to cast long in the expression as n += ((long)i+1)*((long)k+1);