ss
This commit is contained in:
@@ -38,7 +38,7 @@ func (l ListNodeHeap) Swap(i int, j int) {
|
||||
l[i], l[j] = l[j], l[i]
|
||||
}
|
||||
|
||||
func mergeKLists(lists []*ListNode) *ListNode {
|
||||
func MergeKLists(lists []*ListNode) *ListNode {
|
||||
hp := ListNodeHeap(lists)
|
||||
heap.Init(&hp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user