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.
create a map for **long long ** **datatype,as the limit is 10^6.
Then add the element accordingly.
you dont even need an array for storing elements,just create a map and done :).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
create a map for **long long ** **datatype,as the limit is 10^6. Then add the element accordingly. you dont even need an array for storing elements,just create a map and done :).