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.
Array.Sort is just the sort method built in in C#.
First parameter specifies the array need to be sort
Second parameter is a comparer function specify how 2 string should be compared. In this case, if string a and b have same length, it comapre the actual string, otherwise it compare the length.
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 →
Array.Sort is just the sort method built in in C#. First parameter specifies the array need to be sort Second parameter is a comparer function specify how 2 string should be compared. In this case, if string a and b have same length, it comapre the actual string, otherwise it compare the length.