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.
'using the key=int sorting argument performs the necessary conversions internally during the sort process itself, while returning the original string values that are quickly printed.'
That would still convert the string -> to integer -> back to string. The amount of conversions is actually exactly the same.
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 →
How is this making sense?
'using the key=int sorting argument performs the necessary conversions internally during the sort process itself, while returning the original string values that are quickly printed.'
That would still convert the string -> to integer -> back to string. The amount of conversions is actually exactly the same.