Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Can we even call this a heap? Isn't this just an ordered list? A badly implemented one at that.
Why would you order the entire list everytime you insert a new object if you can assume that the list is already ordered to begin with?
How does this get Best Practices and Clever tags? And be top answer at that?
Fixed.
lol
The fastest solution!
Best Practices!
Name of main function in coding place is topSort but in tests its topoSort
n log n operations to each push.. it's not very good heap :)