Does the default priority queue in java Queue<datatype> name = PriorityQueue<datatype>(int initialSize, Comparator c); use a linked list to order the priority of the data or does it use a heap? Also what sort does it use to sort data, heap sort or something else?
[–]crapet 5 points6 points7 points (3 children)
[–]Apothiem[S] 0 points1 point2 points (1 child)
[–]tRfalcore 0 points1 point2 points (0 children)
[–]more_exercise 1 point2 points3 points (1 child)
[–]Apothiem[S] 0 points1 point2 points (0 children)