Counting Sort 2, is a HackerRank problem from Sorting subdomain. In this post we will see how we can solve this challenge in Python

Problem Description

Often, when a list is sorted, the elements being sorted are just keys to other values. For example, if you are sorting files by their size, the sizes need to stay connected to their respective files. You cannot just take the size numbers and output them in order, you need to output all the required ....

You can find the full details of the problem Counting Sort 2 at HackerRank

Solution: Please check the snippet for the solution.

This solution originally posted at: Github by @srgnk