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.
You should change arguments in "myfunction" to (const string& i, const string& j).
const will be there for compiler(and readers) to know, that you won't change the strings and & because you don't want to(I guess) always copy strings.
But otherwise nice solution.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
You should change arguments in "myfunction" to (const string& i, const string& j). const will be there for compiler(and readers) to know, that you won't change the strings and & because you don't want to(I guess) always copy strings.
But otherwise nice solution.