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.
Currently all the existing solutions are telling you that your tests are poor and this kata is probably a bad idea to begin with.
Also:
setElement
is not tested. In fact it's not even part of thepriority_queue
O(n^3)
or worse can pass the test easilyUntil you actually add specifications about the expected behaviours of the member functions of this
PriorityQueue
, we're all left to guesswork to solve the kata, which means your kata is incomplete and shouldn't even be published.I am not good in C++ so I can't do this.. Maybe add ruby , python or javascript ?