- 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
23
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||