You are viewing a single comment's thread. Return to all comments →
Test case 11 is not correct rest everything works fine. Any suggestions
I had to use long long int type in order to pass all test cases
I had to change the method to return type long as the result for the final test case in test case 11 gives an int overflow.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Pairwise Sum and Divide
You are viewing a single comment's thread. Return to all comments →
Test case 11 is not correct rest everything works fine. Any suggestions
I had to use long long int type in order to pass all test cases
I had to change the method to return type long as the result for the final test case in test case 11 gives an int overflow.