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.
I notice now that I made a little fuss: when I was coding this, all the variables are "int", but in the tests of commit, various test cases failed because the values used are in long format. So I change the type of all variables to long, but I didn't change the highest value of min to the highest value of a long type.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
I notice now that I made a little fuss: when I was coding this, all the variables are "int", but in the tests of commit, various test cases failed because the values used are in long format. So I change the type of all variables to long, but I didn't change the highest value of min to the highest value of a long type.