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
|
708 Discussions
|
Please Login in order to post a comment
Go
python
simple javascript solution
function countSort(arr) { let sort = [];
}
I replace the first half of the string values with "-" directly. Cheaper later on to insert and less logic.
The confusing part for me is
It should have just said strings in the first half of the INPUT array
so we wont' be confused with the sort arrays that we're building...