You are viewing a single comment's thread. Return to all comments →
For those who are trying in Java 8, you will need to change the given method to work with long and not int.
long
int
You also need to change that in the main, that is automatically generated by Hacker Rank.
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Pairs
You are viewing a single comment's thread. Return to all comments →
For those who are trying in Java 8, you will need to change the given method to work with
long
and notint
.You also need to change that in the main, that is automatically generated by Hacker Rank.