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.
Lambda is an anonymous function that acts as a custom comparator for the sort. First, a given element x is compared based on its length, followed by its regular sorted value, effectively performing a bucket sort as seen in the other posts.
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 →
Lambda is an anonymous function that acts as a custom comparator for the sort. First, a given element x is compared based on its length, followed by its regular sorted value, effectively performing a bucket sort as seen in the other posts.