#PriorityQueues store data like BST trees ?
1 messages · Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
@void drum there is no array there
if you want to figure out how the priority queue is storing elements you can read the code or make a heap dump
I printed out the elements but how is it being stored in the debugger
im meaning like the code. is it random
strange.. my documentation says something about natural ordering but looking at the debugger its not stored in its natural ordering
yes but wouldn't this 12 be out of place
its a complete binary tree so the 12 is the left node of 19
If you pull them all, they will be in order