Merge k Sorted Lists at TikTok
Hard58.8% acceptance
This problem has 75.0% frequency at TikTok.
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 hintsTopics
Also asked at 52 companies
More TikTok Questions
LRU CacheMediumKth Largest Element in an ArrayMediumTop K Frequent ElementsMediumConstruct Binary Tree from Preorder and Inorder TraversalMediumReverse Linked ListEasy
View all TikTok questions