Skip to content

Latest commit

 

History

History

23

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Solution

  • Use PriorityQueue to add all ListNode head
  • Override Comparator by ListNode.val
  • Find the min element of PriorityQueue and add it's next to PriorityQueue
  • Repeat the previous step until queue is empty