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 did this same exact solution but with substracting array[0] and array[array.length-1] to get the min/max total and it didnt pass! ha! I thought, my output was the same exact output as spec'd but it didnt pass? why? ha -
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 did this same exact solution but with substracting array[0] and array[array.length-1] to get the min/max total and it didnt pass! ha! I thought, my output was the same exact output as spec'd but it didnt pass? why? ha -