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.
I had the same solution except after the length check I was using x.CompareTo(y) (the built in string compare) which gives the same sort order, but times out. Now I'm going to have to go see what the built-in string compare is doing that's so much slower. Probably some culture sensitive stuff.
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 →
I had the same solution except after the length check I was using x.CompareTo(y) (the built in string compare) which gives the same sort order, but times out. Now I'm going to have to go see what the built-in string compare is doing that's so much slower. Probably some culture sensitive stuff.