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.
The Full Counting Sort
The Full Counting Sort
Sort by
recency
|
714 Discussions
|
Please Login in order to post a comment
Python
Finally, after 3 hours! Don't use Python's
sort()
: I assume that our memory usage is so constrained that we can't sort an array of 1000 things. Don't create a big string in memory (i.e. don't usejoin()
). So:Python Solution:
I need an explanation why would this fail some test cases?