Merge k Sorted Lists at Microsoft

Hard58.8% acceptance

This problem has 62.5% frequency at Microsoft.

Problem Description

You are given an array of `k` linked-lists `lists`, each linked-list is sorted in ascending order. _Merge all the linked-lists into one sorted linked-list and return it._

Read full problem and hints

Topics

Also asked at 52 companies


More Microsoft Questions

View all Microsoft questions