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.
Yes that is what I meant, thanks for catching that!
Sorry about that I was rushing. Here it is corrected...
// something like this for p1 < p2booloperator<(Player&p1,Player&p2){if(p1.score!=p2.score){returnp1.score<p2.score;}else{// compare names thenreturnp2.name<p1.name;}}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sorting: Comparator
You are viewing a single comment's thread. Return to all comments →
Yes that is what I meant, thanks for catching that! Sorry about that I was rushing. Here it is corrected...